2 ms·
Async has nothing to do with C# being fast. In fact, the faster C# is, the more you need async, because the more the % time blocked will increase. Ideally, you
by MichaelGG 11y ago
Async has nothing to do with C# being fast. In fact, the faster C# is, the more you need async, because the more the % time blocked will increase.
Ideally, you'd have one thread per CPU. That's the most efficient. In reality, enough stuff blocks we gotta throw extra threads to let things saturate.
You can scale up the number of process-scheduled tasks much more than the number of kernel level threads. (Though, esp on x64, people might get really far just spamming threads.)
- mattmanser 11y agoThat's mixing speed up with volume. It would only matter if the volume of requests was higher too. If everything runs faster, the number of required threads goes down as the requests will be less likely to happen at the same time.
- tracker1 11y agoScenario 1 inbound service request request remote resource wait request additional details for logged in user wait request X info wait resolve inbound request Scenario 2 inbound service request async requests request remote resource request additional details for logged in user request X info wait resolve inbound request Scenario 2 will finish quicker...