Skip to main content

Questions tagged [asynchronous-programming]

Filter by
Sorted by
Tagged with
2 votes
3 answers
205 views

I have a system which has 5 services. Each are run in a separate process. They resemble an assembly line, in the sense that they mostly process messages in the same order 1->2->3->4->5, however it's ...
steady rain's user avatar
1 vote
3 answers
1k views

I have a php process producer-a which places a job on RabbitMQ a - deferring processing to a third-party service. The 3rd party service completes processing a and places a response onto queue b. I ...
Gravy's user avatar
  • 1,067
4 votes
1 answer
2k views

I've recently started to do some more complicated programming with network-related work on iOS with Swift. This introduced a lot of asynchronous code not only in networking but also some exchange of ...
Shane Hsu's user avatar
  • 188
3 votes
1 answer
4k views

I've become interested in futures lately, mostly due to their inclusion in standard C++ - but I see there is an active debate over futures vs. callbacks in many programming areas, such as Node.js. I'...
Siler's user avatar
  • 421
0 votes
1 answer
385 views

First of all, sorry if this post is too long. I'll start with the… Short version: Is it generally advisable or a good idea to design an interface property as asynchronous simply because we cannot be ...
stakx's user avatar
  • 2,128
6 votes
1 answer
1k views

I have adopted a pattern in one of my projects that I really like and I suspect it's likely to be something standard. I'd like to describe it here and see if you guys can tell me how other ...
zumalifeguard's user avatar
2 votes
0 answers
277 views

I am looking to implement the callback pattern with error handling such that error is caught and pass to the callback code with the response. Since I am using .NET 3.5, I cant use Task (TAP) pattern ...
Kalyanaraman Santhanam's user avatar
0 votes
2 answers
271 views

Is the following a statement of best practices in Node.js with regard to web applications? If not, how could it be improved? The statement The lifecycle of any web app has at least two phases: a ...
Terrence's user avatar
  • 103
3 votes
1 answer
198 views

I have a flight planning system in .NET/SQL Server which needs to perform several validation checks. This needs to work on both a windows and a web client. Currently the checks run synchronously but ...
Theo de Roo's user avatar
-2 votes
1 answer
193 views

I'm searching for a suitable way to make web requests to databases and display results in real-time. The data will be used in an interface for staff, so there cannot be any blocking or lag as time is ...
Simon.'s user avatar
  • 107
4 votes
2 answers
3k views

I've got trouble wrapping my head around a certain problem: In my data-flow app (a visual editor), I have both autonomous objects which communicate though ports via unordered simultaneous messages ...
Jack Shade's user avatar
3 votes
1 answer
738 views

I'm using an offline application's javascript API and I'd like to know if I can use deferred objects to handle the callbacks. The API calls do not use HTTP, the calls are to and from the applications ...
Mike's user avatar
  • 483
3 votes
0 answers
742 views

I have the blocking code shown below. Is calling monkey.patch_all() enough/optimal to make it non-blocking? Does Gevent handle iterations like these? # front page def front_page(): database = ...
user3535094's user avatar
1 vote
2 answers
1k views

I'm trying to make a realtime multiplayer web-game in node.js with express framework and socket.io library. But I can't seem to make my server-side logic independent of client interactions. I want ...
laggingreflex's user avatar
5 votes
1 answer
432 views

Turned out, this question is not easy to formulate for me, but let's try. In Android, pretty much any UI object depends on a Context, and has defined lifetime. Android can also destroy and recreate UI ...
Display Name's user avatar
12 votes
2 answers
22k views

Okay, it sounds odd, but the code is very simple and explains the situation well. public virtual async Task RemoveFromRoleAsync(AzureTableUser user, string role) { AssertNotDisposed(); var ...
Ripped Off's user avatar
  • 3,757
0 votes
1 answer
2k views

I am using signals (specifically Boost signals2) to create an event driven protocol API and model. Most elements have their own signals, and there are usually multiple of each element. Consider a ...
111111's user avatar
  • 121
0 votes
1 answer
133 views

What's the term for an error caused by executing a block of code before its relevant ajax response has come back? e.g., a timeline: 13:00:01 execute getDataViaAjax(); 13:00:02 execute ...
I don't use this profile anymo's user avatar
7 votes
1 answer
2k views

I started learning functional programming, I am trying to compare between different algorithms that are written in an imperative, functional , parallel programming and using Collections and Lambda ...
user3047512's user avatar
1 vote
2 answers
417 views

I am working with a multithreaded homegrown multi-module app in my new job. We use the the Thrift protocol to communicate RPC calls between different stand-alone applications in a distributed system. ...
amphibient's user avatar
  • 1,591
1 vote
1 answer
551 views

I'm writing my first Objective-C Class. It's responsible for interaction with an HTTP SSO authentication service. The process requires multiple HTTP transactions in order to complete. The Class acts ...
retrodev's user avatar
  • 387
13 votes
1 answer
2k views

Lately I can't seem to get enough of the amazing async-await pattern of C# 5.0. Where have you been all my life? I'm absolutely thrilled with the simple syntax, but I'm having one small difficulty. ...
talkol's user avatar
  • 255
5 votes
6 answers
8k views

Asynchronous programming seems to be getting quite popular these days. One of the most quoted advantages is performance gain from removing operations that block threads. But I also saw people saying ...
Euphoric's user avatar
  • 38.2k
5 votes
3 answers
5k views

I am developing an application that consumes data from an external service. The application is being implemented following a typical layered architecture with UI, Presentation, Domain and Data layers....
SonOfPirate's user avatar
  • 2,935
1 vote
0 answers
256 views

At one of the DevDays conferences a presenter said that Workflow Foundation isn't just for applications that require persistence, but they can make it easier to write and maintain Async WCF code and ...
makerofthings7's user avatar
1 vote
1 answer
2k views

I have an Email class that has a Send method that optionally takes an SmtpClient and sends an email asynchronously using SendAsync. If no SmtpClient is supplied to this method, it instantiates a ...
user avatar
29 votes
4 answers
18k views

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 "non-...
Sean's user avatar
  • 393
14 votes
1 answer
6k views

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 ...
Anonymous's user avatar
  • 3,566
27 votes
3 answers
25k views

I've been doing a lot of reading online trying to figure out how to write asynchronous JavaScript code. One of the techniques that has come up a lot in my research is to use callbacks. While I ...
Z. Charles Dziura's user avatar
3 votes
2 answers
1k views

In my iOS app, things are mostly driven by events. The user presses a button The app listens for an external device to be connected to the iOS device Once the device is detected (is connected), an ...
Rowan Freeman's user avatar
4 votes
6 answers
6k views

I am wondering if there exists a way to half way synchronize javascript functions, where data is requested on the fly. I don't want to make it purely blocking (which I guess is impossible), I just ...
Ramzi Kahil's user avatar
  • 1,089
48 votes
5 answers
37k views

Stumbled upon this post that talks about making async web requests. Now simplicity aside, if in real world, all you do is make an async request and wait for it in the very next line, isn't that the ...
Mrchief's user avatar
  • 631
2 votes
1 answer
266 views

I have a product with two separate applications. The core of the product lives in the database (oracle) and runs according to a schedule. The other is a client application (currently ASP.NET MVC3) ...
Saigework's user avatar
2 votes
3 answers
632 views

Our team is mantaining and developing a .NET web service written in C#. We have stress tested the web service's farm and we have evidence that the actual architecture doesn't scale well, as the number ...
Simone's user avatar
  • 163
22 votes
1 answer
14k views

Asynchronous non-blocking event driven programming seems to be all the rage. I have a basic conceptual understanding of what this all means. However what I'm not sure is when and where my code can ...
xenoterracide's user avatar