Maven (famous)@lemmy.world to Programmer Humor@lemmy.ml · 10 months agoSTOP DOING ASYNClemmy.worldimagemessage-square25fedilinkarrow-up19arrow-down10
arrow-up19arrow-down1imageSTOP DOING ASYNClemmy.worldMaven (famous)@lemmy.world to Programmer Humor@lemmy.ml · 10 months agomessage-square25fedilink
minus-squareLmaydev@programming.devlinkfedilinkarrow-up1·edit-210 months agoA huge amount of time in apps is spent waiting for IO, database or web requests to complete. Async prevents locking a thread during this wait. If you’re handling a large amount of requests in a web server, for example, it allows other requests to progress while waiting for these operations. Threads are also expensive to start and manage. Also handling threads manually is a pain in the ass.
A huge amount of time in apps is spent waiting for IO, database or web requests to complete.
Async prevents locking a thread during this wait.
If you’re handling a large amount of requests in a web server, for example, it allows other requests to progress while waiting for these operations.
Threads are also expensive to start and manage.
Also handling threads manually is a pain in the ass.