Skip to main content

Questions tagged [asynchronous]

1 vote
1 answer
365 views

What does it mean to be "truly" asynchronous?

Reading the Proactor pattern paper, specifically this part: I/O Completion Ports in Windows NT: The Windows NT operating system implements the Proactor pattern. Various Asynchronous Operations such ...
codefast's user avatar
  • 169
2 votes
3 answers
420 views

Does it make sense for an API with 1 daily job to do to be asynchronous?

This is a conceptual question about whether my specific use-case warrants the use of an asynchronous API. Language: Python 3.11 Framework: FastAPI (ASGI) I believe I am confused about what an ...
nonohat's user avatar
  • 53
1 vote
3 answers
214 views

Changes that aren't changes (The AAA problem)?

Suppose an application records a version marker on some data. For example a database application might record UPDATE_TS as a datetime when a record was updated. It could just be an integer version ...
Persixty's user avatar
  • 355
3 votes
2 answers
420 views

Can multiple producers cause events with the same key to be enqueued out of order within a specific partition of a topic?

I'm aiming to create a simple event-driven system where each microservice operates with its own database. The idea is to share database changes across microservices through events. To ensure proper ...
Shahriar Niloy's user avatar
0 votes
1 answer
66 views

What are the approaches for joining data in distributed processing

Let's suppose I have a processing workflow of: Where: The workflow can have many instances running at the same time. A1 -> B1, C1 -> D1 A2 -> B2, C2 -> D2 and so on... Each node is an ...
August's user avatar
  • 119
1 vote
1 answer
378 views

Asynchronous HTTP request pattern

Here is the pattern that I thought about for a resource accepting a single asynchronous HTTP request at a time (i.e. a request which has not yet been fulfilled when the response is sent): Create a ...
Géry Ogam's user avatar
0 votes
1 answer
325 views

TCP connection-oriented synchronous data write

thinking about the design of an IoT project where the devices don't have a standard application layer but rather a thin custom application layer utilizing TCP sockets. What I mean by this is that the ...
sam's user avatar
  • 3
-2 votes
1 answer
793 views

How to sync async and await Tasks?

With threads you could use Semaphore, mutex, ManualResetEvent, etc... to sync a shared data, how do you accomplish the same thing with tasks? Essentially, if I have shared data between different ...
user15639575's user avatar
2 votes
2 answers
491 views

Should I create two synchronous or a single asynchronous rest APIs?

Here is the situation. System A sends the notification as it completes the work items to System B. System A does not know how many items the project consists of. It's just a pass-through system. ...
user1473349's user avatar
0 votes
3 answers
571 views

Is microservices architecture a good candidate for a pipeline?

I have a monolithic application which can be divided into multiple steps and different steps have variable scaling requirement, however the input of the next step is the output of the current step. ...
Deepak Mishra's user avatar
1 vote
0 answers
146 views

Asynchronous communication with legacy system

Background My task is to create new system (X) for realtime work tracking for internal use. You should think it like an app that you have opened on a separate monitor/ on phone all day and you are ...
Pettan's user avatar
  • 11
0 votes
0 answers
47 views

Designing sane messaging paradigm for concurrent updates

We have a weird use-case that I need to support in my application and needed some opinions on how to design it. At a basic level the application allows users to work on a "list" of "tweets" she cares ...
user642770's user avatar
-2 votes
1 answer
48 views

Synchronisation of different "channel" in an asynchronous way

I have a scenario where a service needs to update back and forth information from different channels (and each channel should have the same information, e.g inventory of products). It all works fine ...
Armand's user avatar
  • 107
2 votes
1 answer
805 views

Long running REST API in PHP, async?

I have a RESTful API built with PHP. In POST request saving to DB is triggered. The problem is that now I have to support long running tasks. For example a user triggers POST request that is going to ...
stubborn's user avatar
  • 213
6 votes
2 answers
4k views

Is it good approach to await async tasks in object destructor?

I'm currently working on class with some async tasks under the hood. In fact I need to delegate few tasks to asynchronous execution and be sure that all of them are finished before class was destroyed,...
Liastre's user avatar
  • 181

15 30 50 per page