Questions tagged [asynchronous]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
51 views

How state updates to existing instances/sessions are generally done?

This is a very broad question, but maybe someone has a worthwhile response. There is a general synchronization issue that often has to be solved, but always seems to be difficult. Here's an example: ...
4
votes
4answers
444 views

How to separate sync and async methods in C# type?

Lets say I design a generic read only repository IReadOnlyRepository. public interface IReadOnlyRepository { ... TEntity Find<TEntity>(object id) where TEntity : IEntity; ...
1
vote
2answers
67 views

Structural problem related to Dependecy Injection and Asynchronous Operations

I'm implementing the onion architecture with webapi, service layer, repository, unit of work and the domain classes. I use also DI, using simple injector. But my issue, is how can I implement a ...
-2
votes
1answer
397 views

PHP or NodeJS for a chat app with message queue

In my company I proposed NodeJS for developing a microservice that acts as a bridge between the front-end and a third party chat API, that Microservice will receive large amounts of messages (about ...
2
votes
2answers
198 views

Achieving very large real-time async writes on MySQL tables without locking them to reads

I am building a webapp (Angular frontend, Groovy/Spring/Hibernate/MySQL backend) that will allow users to compete against each other over certain activities. Each activity will have 1 winner and 1 ...
0
votes
1answer
142 views

Does placing an httpd server in front of a Vert.x application defeats Vert.x's purpose?

I'm watching a talk on Vert.x (not in English) and they say that "the whole architecture needs to be asynchronous from beginning to end", and cites as an example of what not to do putting an Apache ...
1
vote
0answers
123 views

Designing a configurable delay pattern on JMS (tibco maas) stack

My java app is a consumer to maas topic(say PRIMARY) on which upstream systems publishes their messages. Some of the pushed messages now needs some delay(say 10 min) before my app starts processing it....
-4
votes
1answer
73 views

Appropriate design for mutlithreaded asynchronous server app?

I have a three layer application with your basic client layer, middle layer, and database layer. The middle layer is intended to take requests for work and data from the client, process it, and then ...
3
votes
3answers
756 views

Make multithreaded program asynchronous

There is an application that processes TCP/IP requests according to some logic, and pretty always it connects to DB. Architecture is very common: one client -> one processing thread -> one DB ...
4
votes
1answer
117 views

How are asynchronous exception implemented?

What changes need to be made to a language/runtime if one wants to implement fully asynchronous exceptions (thrown from one thread to another, capable of interrupting pure computation without the need ...
5
votes
2answers
319 views

Is a promise-aware eventing system desirable?

I'm fully aware that Promises and eventing are both ways to do asynchronous programming, and you can choose either one for a given project. However, in practice, the code base I'm working with is ...
0
votes
3answers
587 views

Excute Procedure in Parallel or Async

I have inherited an application which performs approximately 100,000 executions in a C# for-loop against SQL Server. for (int i=0; i<100000; i++) { //Execution can take 0.250 to 5 seconds to ...
6
votes
0answers
611 views

Zeromq bidirectional asynchronous transmission?

I have a system which consists of two applications. Currently, two applications communicate using multiple zeromq publish/subscribe sockets generated for each specific type of transmission. Sockets ...
1
vote
1answer
4k views

What are the benefits of Asynchronous HTTP

Q.1 I know that when we are talking about synchronous HTTP, for each request a Thread may be spawn and get blocked, so when number of simultaneous connections increase, we will encounter massive ...
1
vote
1answer
784 views

Asynchronous client-server implementation

The mission: Implement a program that will listen to multiple client requests asynchronously (on TCP) and transfer them to a server (also on TCP) to which only one connection is allowed. The program ...
2
votes
1answer
155 views

Remote job execution and synchronization

I have master and nodes infrastructure. Master executes remote jobs on nodes. Each job returns success/failure message back to master. So the flow of execution is the following: master receives ...
1
vote
2answers
1k views

What is the difference between synchronous and asynchronous data transmission?

I have a device that is a source of data. It is connected to a PC where my program is running. I have two scenarios of how to get the data from that device. I am wondering, which one is synchronous ...
-1
votes
1answer
255 views

JS Asynchronous Load Pattern

This is a specific problem but I believe the pattern here may be general enough to be useful to the audience here. I'm working on an offline JS application. In my JS application, I would like to run ...
4
votes
1answer
1k views

Is there a formula to figure out the total execution time of sequential asynchronous processes?

I have a set of steps that need to run sequentially over a list of data. However each step only operates on a single piece of data at a time. Because of this, I can run the steps asynchronously. For ...