675
STOP DOING ASYNC (lemmy.world)
submitted 7 months ago by Maven@lemmy.world to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] sebsch@discuss.tchncs.de 10 points 7 months ago* (last edited 7 months ago)

Imagine a webser or proxy and for every incoming request it creates an new thread 💣

Yes you're right if it's a second or third thread it is/may be fine. But if you're i/o bound and your application has to manage quite a lot of that stuff in parallel, there is no way around delegating that workload to the kernel's event loop. Async/Await is just a very convenient abstraction of that Ressource.

this post was submitted on 28 Jan 2024
675 points (94.8% liked)

Programmer Humor

32060 readers
2693 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS