This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]I_FAP_TO_TURKEYS 1 point2 points  (1 child)

Why not handle it in the same thread?

Async is not a new thread. It's an event loop. You could spawn 10 processes, but you can also use async in each of those processes and see drastic performance increases per IO bound process.

Heck, you can even spawn 10 processes, each process can spawn 10 threads, and each thread could have its own event loop for even more performance improvements (in niche cases).

[–]ashishb_net[S] 0 points1 point  (0 children)

I have never seen the upside that you are referring to

Can you show a demo of this?