The async tag has no wiki summary.
4
votes
3answers
123 views
What determines which Javascript functions are blocking vs non-blocking?
I have been doing web-based Javascript (vanilla JS, jQuery, Backbone, etc.) for a few years now, and recently I've been doing some work with Node.js. It took me a while to get the hang of ...
3
votes
1answer
670 views
How can NodeJS be “non-blocking”?
I'm learning NodeJS and just wanted to clarify something. In several introductory tutorials and books so far, very early on they've described Node's "non-blocking" architecture - or rather that it's ...
1
vote
0answers
106 views
Single write, multiple read of stateful objects
Scenario:
One data input feed (call this Source)
Multiple objects (call these Layer1) read this Source, and analyze the feed. This analysis is stateful.
Layer1 objects have configuration parameters. ...
1
vote
0answers
65 views
Atmosphere + Long Polling : No message distribution?
I'm experiencing a strange behavior with Atmosphere + Long Polling.
I'd like to have a broadcaster per user, so I have registered a broadcaster on resource suspension with id : /user/.
I use ...
-2
votes
2answers
115 views
Calling blocking functions and execute code when result is ready, but without callbacks
I am designing an application that has some scripting capabilities: the host application may call the scripts to perform some operations when some events occur. To keep it easy and newbie-friendly, ...
1
vote
0answers
114 views
How to optimize calls to multiple APIs at once and return as one set?
I have a web app that searches across 2 APIs right now. I have my own Restful web service that I call, and it does all the work on the backend to asynchronously call the 2 APIs and concatenate them ...
6
votes
3answers
1k views
BackgroundWorker vs. Async/Await
I am new to C# development and wish to create a more responsive UI. In my preliminary research, I have seen two methods for achieving this:
Multi-threading in conjunction with the BackgroundWorker ...
5
votes
1answer
186 views
Asynchronously returning a hierarchal data using .NET TPL… what should my return object “look” like?
I want to use the .NET TPL to asynchronously do a DIR /S and search each subdirectory on a hard drive, and want to search for a word in each file... what should my API look like?
In this scenario I ...
0
votes
0answers
158 views
Using Interlocked.Exchange(ref Enum, 1) to prevent re-entrancy [closed]
What options do I have for pending work that can't acquire a lock via the following sample?
System.Threading.Interlocked.CompareExchange<TrustPointStatusEnum>
(ref tp.TrustPointStatus, ...
7
votes
1answer
293 views
Futures/Monads vs Events
In an application framework
when performance impact can be ignored (10-20 events per second at max),
what is more maintainable and flexible to use as a preferred medium for communication between ...
14
votes
5answers
902 views
At what point is asynchronous reading of disk I/O more efficient than synchronous?
Assuming there is some bit of code that reads files for multiple consumers, and the files are of any arbitrary size: At what size does it become more efficient to read the file asynchronously? Or to ...
5
votes
3answers
1k views
When should I use StringBuilder or StringBuffer?
In a production web application, my fellow programmers used StringBuffer everywhere. Now I am taking care of application development and corrections. After reading StringBuilder and StringBuffer I ...
4
votes
1answer
126 views
Asynchronous update design/interaction patterns
These days many apps support asynchronous updates. For example, if you're looking at a list of widgets and you delete one of them then rather than wait for the roundtrip to the server, the app can ...
9
votes
4answers
1k views
How do you keep code with continuations/callbacks readable?
Summary: Are there some well-established best-practice patterns that I can follow to keep my code readable in spite of using asynchronous code and callbacks?
I'm using a JavaScript library that ...
2
votes
2answers
443 views
What's the best practice for async APIs that return futures on Scala?
I have started a project to write an async PostgreSQL driver on Scala and to be async, I need to accept callbacks and use futures, but then accepting a callback and a future makes the code cumbersome ...
4
votes
1answer
250 views
Cross-process asynchronous messages in .NET
(Asking this here instead of SO because I don't even know what technology to tag it with :))
My team is about to embark on a project to convert a large part of our code base to use asynchronous file ...
3
votes
2answers
945 views
How do you work with Asynchronous functions, recursively?
I am currently working on FLEX and have to call a web services. once I have the result, I have to call the web service again, with the previous result as the input.
A compounding problem, is that ...
2
votes
2answers
480 views
How to present asynchronous state change in chart or diagram?
I started to study about state transition chart. As I see, it assumes all state transition is done instantly with no time consuming. But in most of my case, I'm heavily depending on asynchronous I/O, ...
12
votes
3answers
3k views
How will C# 5 async support help UI thread synchronization issues?
I heard somewhere that C# 5 async-await will be so awesome that you will not have to worry about doing this:
if (InvokeRequired)
{
BeginInvoke(...);
return;
}
// do your stuff here
It looks ...
5
votes
2answers
340 views
How can I design an efficient moderation system for comments?
Here's the job I want to do:
My project is a website where there will be a lot of comments.
Those comments will be moderated: a moderator will connect, see comments and accept or refuse them.
I need ...
11
votes
6answers
1k views
Solutions to C# 5 async re-entrancy
So, something's been bugging me about the new async support in C# 5:
The user presses a button which starts an async operation. The call returns immediately and the message pump starts running again ...
0
votes
1answer
745 views
Should we (still) consider a synced XMLHTTPRequest bad practice?
As you may know, XMLHTTPRequest can be used synchronously or asynchronously, but synchronized requests have always been considered bad practice, and I've always agreed with that.
Not only is the ...
3
votes
1answer
248 views
How can I use Windows Workflow for validation of a Silverlight application?
I want to use Windows Workflow to provide a validation service. The validation that will be provided may have multiple tiers with chaining and redirecting to other stages of validation. The ...
3
votes
1answer
271 views
using blocking APIs with non-blocking server
We are using Tornado for our system (behind nginx) -- and everything is working fine.
Now we need to integrate a client lib (for Neo4j Graph DB) into our system. The problem is that it is blocking.
...
4
votes
2answers
579 views
How do you decide to Queue/Dispatch events Sync or Async? (in Observer Pattern)
Consider the following elements in an event-driven architecture:
Observable Object
Event Dispatcher
Observer(Listener)
Now, we have two messages:
From Observable Object to Event Dispatcher
From ...
3
votes
5answers
504 views
Where was “async” all these days?
It was started with C# 5's new keyword "async". And now I see this async programming everywhere from Javascript to C++, mostly from Microsoft. And from various discussions I came to know, this is a ...
7
votes
3answers
1k views
Choosing a JavaScript Asynch-Loader
I’ve been looking at various asynchronous resource-loaders and I’m not sure which one to use yet. Where I work we have disparate group-efforts whose class-modules may use different versions of jQuery ...
0
votes
5answers
408 views
Ways of handling asynchronous receive calls
I am implementing a primitive message-passing system. Currently, I am designing a receive function for async calls. Can I implement such a async receive function without using callback functions?
6
votes
2answers
651 views
Best practices when managing long running asynchronous jobs
I am in the design phase of a project where the end user will submit a request from a web page that will spawn a long running asynchronous processed job. Is there a "best practice" for this problem? ...
1
vote
1answer
524 views
How is the “evented-io” in node.js any different from the windows event model
I'm wondering how the "evented-io" in node.js any different from the windows async IO model?
Is the callback from node.js executed on a thread, if not, where is it run?
I don't mean to question the ...
12
votes
4answers
1k views
Asynchronous Programming in Functional Languages
I'm mostly a C/C++ programmer, which means that the majority of my experience is with procedural and object-oriented paradigms. However, as many C++ programmers are aware, C++ has shifted in emphasis ...
2
votes
3answers
479 views
What is meant by XML/XSLT/XPath and asynchoronous programming?
I understand that (1) XML/XSLT/XPath and (2) asynchoronous programming may not be related to one another. My questions are:
When a C# developer job is advertised saying: "the following skill is ...
3
votes
3answers
227 views
What scenarios are implementations of Object Management Group (OMG) Data Distribution Service best suited for?
I've always been a big fan of asynchronous messaging and pub/sub implementations, but coming from a Java background, I'm most familiar with using JMS based messaging systems, such as JBoss MQ, ...