3 ms·
Cool, good to know. I know threads are a limiting factor, but sometimes people jump into async while the problem is somewhere else
by raverbashing 4y ago
Cool, good to know. I know threads are a limiting factor, but sometimes people jump into async while the problem is somewhere else
- pkolaczk 4y agoIn this case each request is very tiny amount of work on the client, so waking up a thread to do that work just to immediately block waiting on the response from the server is very wasteful. With async you can send hundreds of requests in a simple loop, on a single thread. It's not only more efficient but also actually easier to write.