3 ms·
First note: Async should NOT be in the language. Support for such constructs should be in the language, and then libraries should add features such as async (li
by MichaelGG 13y ago
First note: Async should NOT be in the language. Support for such constructs should be in the language, and then libraries should add features such as async (like F# has done for years).
Second note: If your app has lots of short-ish lived requests, you can just achieve parallelism by having a decent-sized threadpool and just run each request on a thread. Who cares if you have 400 threads? It'll scale well enough (as you noticed).
However, if the app is doing long-running requests/clients, and you dedicate a thread to each one, then you end up with a lot of extra overhead. Using C#'s async model can simplify the code while keeping things lightweight.