asynchronous

Updating UI realtime in RoR after API Calls

Hi All- I am developing an app using the Amazon API found here, which unfortunately only allows a small amount of records to be returned at once, which causes a significant slowdown when loading any more than one call's worth of items. I'd like to make the returning of these records more seemless. I figure the way to do it, is to use ...

Delayed Job for ASP.NET to running async code?

Is there a plugin or other to mimic Rails Delayed Job in ASP.NET? What's the best way to run async code or jobs in an ASP.NET application? ...

Asynchronously sending Emails in C# ?

Hi, I'm developing an application where a user clicks/presses enter on a certain button in a window, the application does some checks and determines whether to send out a couple of emails or not, then show another window with a message. My issue is, sending out the 2 emails slows the process noticeably, and for some (~8) seconds the fi...

Proper way to handle async callbacks in Netty with ning client.

Here's my scenario: I've got a custom protocol built on HTTP. I've started a netty server that has two custom handlers after the http ones in the ChannelPipeline: pipeline.addLast("decoder", new HttpRequestDecoder(1024, 10240, 32768)); pipeline.addLast("aggregator", new HttpChunkAggregator(1048576)); pipeline.addLast("encoder", new Http...

Is the "async" attribute/property useful if a script is dynamically added to the DOM?

This question is sort of a tangent to Browser support for <script async=“true” />?. I've seen a few scripts lately that do something like this: var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'http://www.example.com/script.js'; document.getElementsByTagName('head')[0].appendChild(s); This...

Is there a way to grab files from other servers and dump them into the DB asynchronous?

Hello guys, I need to create a php script that takes lots of URL's via POST and then loads the corresponding files and dumps them in the DB. The thing is that I would like to do it asynchronous, so that if I have 1000 files to get, the script won't hang till all the files are loaded. Also, every time a file it's done loading, I need to ...

Calling 3 web services async, and waiting for them to complete

In my silverlight page, when the user clicks on a button; the app, calls 3 web services async. It has to either wait for these 3 async calls to be completed or has to be notified when these calls are completed. After these 3 calls are completed, the results will be written to a text file (It is a out-of-browser app with elevated trust). ...

Trying to replace my boost::asio::read with boost::asio::async_read

So, the code I started with and which works (with important caveats below) int reply_length = boost::asio::read(*m_socketptr, boost::asio::buffer((char*)reply, 6)); This works, I get the header which I then decode and follow up with another read which gets me my message and then I loop back to the top and read another header. This pe...

How Do I Choose Between the Various Ways to do Threading in Delphi?

It seems that I've finally got to implement some sort of threading into my Delphi 2009 program. If there were only one way to do it, I'd be off and running. But I see several possibilities. Can anyone explain what's the difference between these and why I'd choose one over another. The TThread class in Delphi AsyncCalls by Andreas Haus...

ASP.NET asynchronous controllers and calling Sync(); what is "Sync()"?

The Working with the BeginMethod/EndMethod Pattern section of Using an Asynchronous Controller in ASP.NET MVC refers to a Sync() method. It is not linked and I am having trouble finding documentation on it through google searches since sync is too common a term. Can someone point me in the write direction? To make sure that you have...

PHP and AJAX, sending new PHP info to page for AJAX to receive, is this possible?

I'm searching on how to do this but my searches aren't turning up things that are talking about what I'm trying to do so maybe I'm not searching with the right terms or this isn't possible, but figured I would ask here for help.. this is what I am trying to do.. I have PHP scripts that are called asyncrhonously, so it is called and it j...

How does one determine the amount of internally used buffer capacity for the System.Net.Sockets.Socket.AcceptAsync method?

Hi, The .NET method Socket.AcceptAsync() has a neat feature: The ability to specify an initial buffer that will receive some amount of data immediately after accepting the new connection. This could be useful for exchanging a fixed-length signature, protocol header, session ID or similar initiatory data (and in fact, that is what the MS...

How to properly write a SIGPROF handler that invokes AsyncGetCallTrace?

I am writing a short and simple profiler (in C), which is intended to print out stack traces for threads in various Java clients at regular intervals. I have to use the undocumented function AsyncGetCallTrace instead of GetStackTrace to minimize intrusion and allow for stack traces regardless of thread state. The source code for the func...

How can multiple Stored Procedures update same row at same time?

I am using SSIS 2008 to execute multiple stored procedures in parallel in control flow. Each SP is supposed to ultimately update 1 row in a table. The point to note is that each SP has a defined responsibility to update specific columns only. It is guaranteed that the different SPs will not update each other's columns. So the columns t...

NServiceBus and ASP.NET MVC 2: When to use asynchronous controllers?

ASP.NET MVC 2 includes the built in feature of asynchronous controllers. My question is: Is there any benefits on using the asynchronous controllers to send messages to the bus if I'm not waiting for a reply from the bus? Microsoft states this in their async controller documentation: In general, use asynchronous pipelines when the f...

having trouble returning this type in A Asynchronous WCF Service Call From Silverlight

I have a WCF Service. It returns the below type. I get the data in the first level but not any of the data in the nested lists... What could be my problem? using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace slCF2.Web { public class Customer { string _firstname; string...

Highly configurable and efficient ESB / SOA / integration framework

Hi, my plan is to develop or use a Java-based integration framework (ESB, SOA whatever) that deals with services, with the following constraints: a Service can be deployed on multiple machines but doesn't have to be present on every one of them a Service can be deployed and re-deployed (with a newer version) separately a Service is con...

Asynchronous PureMVC in Python

Taking the following code from here, from the shortened version at the bottom, exists this proxy: class DataModelProxy(puremvc.patterns.proxy.Proxy): NAME = "DataModelProxy" def __init__(self): super(DataModelProxy, self).__init__(DataModelProxy.NAME, []) self.realdata = Data() self.sendNotification(AppF...

unbounded_buffer, _CrtSetDbgFlag and memory leaks

I am trying to use one of the new features - asynchronous agents library. I just added a unbounded_buffer m_myDataBuffer; to my C++ class, nothing more - no agent running yet. To enable memory leak detection in my application, I am using: #ifdef _DEBUG _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); #endif But a...

How to handle asynchronous Java calls from an AJAX call

I want to make an AJAX call to my Java webapp. The Java webapp will in turn make an asynchronous return call elsewhere. The result of that call will then be returned as the result of AJAX request. The crux of my question is what would I do with the HttpRequest whilst I'm waiting for the second call to return? Do I just block and wait ...