Tag Archives: asynchronous

PHP asynchronous cURL with callback

Questions: I am trying to do a request using cURL in an asynchronous way with callback. I am using a piece of code that i copy from a site. When i write in my browser this url: http://www.myhost:3049/exemplo/index/async/ its execute the function asyncAction thats execute the curl_post function. /** * Send a POST requst using… Read More »

Callbacks in Thrift Asynchronous Functions?

Questions: In Thrift it is possible to use the oneway modifier to specify a call as asynchronous. Apparently, it’s not possible to define a callback, though, to be executed when the execution of the function is completed. It seems that the only possibility I have is to give my Thrift client (PHP) some “server” capabilities,… Read More »

Asynchronous Function Call in PHP

Questions: I am working on an a PHP web application and i need to perform some network operations in the request like fetching someone from remote server based on user’s request. Is it possible to simulate asynchronous behavior in PHP given that i have to pass some data to a function and also need output… Read More »

SQL Server – Asynchronous Query Execution

Questions: In Sql Server 2008, I have a stored proc that writes the result into an output parameter and that inserts the parameters into a table. I want to make the “inserting into a table” part of the SP to run asynchronously so that the result can be read from the output parameter without waiting… Read More »

Asynchronous ADO.NET

Questions: I’m trying to write an asynchronous server that queries a SQL Server database and am concerned that my DB side is too synchronous. Specifically, I can call ExecuteReader asynchronously but cannot then call reader.Item asynchronously and is where 57% of the time is spent (blocking my precious thread!). Is this the most asynchronous I… Read More »

Why are asynchronous calls to my database desireable?

Questions: I’ve written a server which interacts with an MSSQL database. It’s currently written in .NET 4.0 and uses NHibernate as an ORM to retrieve information from the database. When reading about .NET 4.5 and the introduction of the async/await keywords I learned that, unfortunately, NHibernate does not have support for async/await . I don’t… Read More »

Is asynchronous jdbc call possible?

Questions: I wonder if there is a way to make asynchronous calls to a database? For instance, imagine that I’ve a big request that take a very long time to process, I want to send the request and receive a notification when the request will return a value (by passing a Listener/callback or something). I… Read More »

How to asynchronously call a method in Java

Questions: I’ve been looking at Go’s goroutines lately and thought it would be nice to have something similar in Java. As far as I’ve searched the common way to parallelize a method call is to do something like: final String x = “somethingelse”; new Thread(new Runnable() { public void run() { x.matches(“something”); } }).start(); Thats… Read More »