CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 23:19:04 GMT
content-type: text/html; charset=utf-8
cf-ray: 967894297fa6c151-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=0b6911d3-da5c-4545-92b7-5cd84f303aff; expires=Thu, 30 Jul 2026 23:19:04 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: a247e150-5175-4699-a001-010c5ec4bd2b
x-worker-origin-response-time: 410000000
x-dns-prefetch-control: off
set-cookie: prov=0b6911d3-da5c-4545-92b7-5cd84f303aff; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=EwYNPumQpbMCtwV9n1UEAk68LYWbXoKjRu1ceuTsr60-1753917544-1.0.1.1-z2SqXi1lDjZpQ4qUlUI.gPJ2V3xsuks7loYJFvoOloDoeGEe9R2XXslal3zFXGorDV5ZXHLylQIIbNumrHiqkyBb.wLC3o7OVEczt7vyN7Q; path=/; expires=Wed, 30-Jul-25 23:49:04 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=CvxYgkPWZdB.fiNMKn6iCTkqWbDD4cZ_Q7YU4yu0G24-1753917544348-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'async' Questions - Software Engineering Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more.
View results.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [async]
The async tag has no summary.
167 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
2
answers
173
views
Best way to add asynchronous execution for already implemented synchronous process
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.
...
6
votes
2
answers
519
views
How is async implemented natively?
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 ...
0
votes
2
answers
814
views
C# readability - async/await or return for wrapping asynchronous functions?
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 ...
1
vote
0
answers
454
views
How to structure your Python code with asynchronous and synchronous parts
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 ...
1
vote
0
answers
120
views
golang: pattern for handling message queues? Are named functions anti-idiomatic somehow?
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 ...
2
votes
2
answers
409
views
What are the risks in eliminating sync over async?
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 ...
8
votes
1
answer
5k
views
Should web API controller actions that perform no async work always be declared as async?
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]
...
0
votes
1
answer
204
views
Bubbling errors upstream in async message-based services
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, ...
0
votes
1
answer
582
views
How to optimize average rating calculation in a review system?
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 ...
0
votes
1
answer
206
views
How should I handle routine health checks in a Node.js/Nest.js application?
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 ...
0
votes
1
answer
308
views
Can resource which requires asynchronous cleanup be constructed synchronously?
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 ...
49
votes
6
answers
31k
views
In JavaScript, how is awaiting the result of an async different than sync calls?
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() {
...
0
votes
3
answers
195
views
Critical section with two different "rights of way" [closed]
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, ...
4
votes
1
answer
534
views
Share models between AsyncAPI and RESTful APIs?
What I try to solve:
Given I run a set of microservices, most of which expose a RESTful API and additionally publish or consume events via messaging broker,
and I have decided to go "API first&...
0
votes
1
answer
135
views
Long-running jobs in an event-driven environment with constrained max-execution-duration
Hello we have an async event-driven system (kotlin, spring cloud stream, rabbitmq) where there might be an event FooPayloadArrived, published by an ingress rest-controller.
Processing this ...
- The Overflow Blog
-
-
- Upcoming Events
-
2025 Community Moderator Electionends August 13
- Featured on Meta
-
-
-
Related Tags
c# × 57
javascript × 21
.net × 19
multithreading × 15
java × 9
design-patterns × 8
architecture × 8
node.js × 7
api × 6
message-queue × 6
promises × 6
python × 6
design × 5
concurrency × 5
c++ × 5
io × 5
messaging × 4
.net-core × 3
asynchronous × 3
asp.net-mvc × 3
error-handling × 3
reactive × 3
more related tags
Hot Network Questions
- History of יד/Yad appellation for Rambam's Mishneh Torah
- Why do C compilers still prefer push over mov for saving registers, even when mov appears faster in llvm-mca?
- How to cite two part paper with different order of authors?
- Area of a Quadrilateral Formed by Intersecting Lines in a Triangle
- I have made a darligton pair circuit to amplify +/- 10mA to +/- 10 A . But it showing only postive swing. i need negative swing too. what should i do
- What constitutes a 'structure' made of Force for the purposes of a Forcebreaker Weapon?
- What are ways to prevent overly long ballots?
- How safe is it to send an ID photo to a host via Booking.com chat?
- Puzzlin’ Puzzle
- When using Da Capo, does that normally include a pick up?
- How should I talk about definitional uncertainty in seemingly well-defined measurands, arising at high resolutions?
- Identify Last-Layer Perm of a Rubik's Cube
- CCZ magic state teleportation
- Stepping down voltage from Li-ion to simulate 2x AAA batteries
- I applied for a postdoc and the position was left unfilled because no candidate was found to be a good match. Should I follow up?
- Is a normality test always performed on errors and not on raw data?
- Finite projective plane with trivial automorphism group
- Eye-shaped arrow tip
- Why did many arcade games have separate sound CPUs?
- Is there any (around) the 14 hidden characters in path and/or filename in File Explorer?
- Bell always pinging on slight jolts
- How quickly can you solve the Change Change game?
- US firm charging a US resident in foreign currency - legality?
- Can a body part of a defeated monster act as an associated object for the Teleport spell to find a creature's lair?