Stack Exchange network consists of 183 Q&A communities includingStack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I'm working on a WPF application which has many user interactions which start with opening a non model window, allowing some interaction with the window and the rest of the application (think ...
I’m migrating a large volume of historical RRD data into a VictoriaMetrics cluster.By design, vminsert buffers and asynchronously forwards data to vmstorage. This makes it unclear when data is ...
I have a complex process implemented in Java Spring microservice.Currently this process is triggered on user request and it is synchronously executed.This often results in a gateway timeout....
How is async logic implemented natively without threads? What would be the high level structure of the system?Is it just a separate OS thread that gets and pushes requests and results in 2 queues?I ...
Say I have an asynchronous method:public async Task DoThing(int x){ // ...}Now, I want to wrap this method with a new method. Each of these two options are functionally equivalent:public ...
I have a Python FastAPI server application which naturally guides you towards the asynchronous paradigm.For legacy reasons, I have to support two backends, one which is purely synchronous and one ...
Had a discussion today in how to implement services that work with messages coming in from event queues. We call these services processors. One of us argues for using several functions, while the ...
I'm reviewing changes to a widely used library, which are supposed to be refactorings, and so we want to minimize the risk of introducing any accidental regression. Of course, there are changes from ...
I have been going over our app web api and making sure all async work is async all the way - and no artificial asynchronicity is enforced.Say I have the following web api controller: [HttpGet] ...
Imagine a simple set up of an API and a 2nd service, where the API pushes some msgs to the message queue and the service pulls them and processes them.Now, if an error occurs while processing a msg, ...
I'm thinking of a designing a review system (restaurant, hotel etc) where users can drop star reviews. Typically in a such a application, you can see the average rating of an entity along with all ...
I have a Nest.js application, and lately I've been thinking about how I can ensure that data is synchronized between two sources - my database and an external database.For example - and to my ...
More specifically this applies only to resources which have asynchronous dependencies themselves (but I think that's majority of them).Concrete example:class Foo : IAsyncDisposable{ public ...
I'm having a hard time wrapping my head around the use of async/await and regular sync function calls in JavaScript.Let's say I have two functions:Function 1:async function doSomething() { ...
In C#, how do I handle critical section with two different "rights of way"?Theoretical use case: imagine a swimming pool (the resource). Many individual swimmers (worker threads A, B, C, ...