4 ms·
>If your program is slow because it's waiting for external service response, you're doing programming wrong. Your program should do other work in the meantime.
by DeathArrow 5y ago
>If your program is slow because it's waiting for external service response, you're doing programming wrong. Your program should do other work in the meantime.
What work? Mine bitcoins while you wait the result for an API call?
- emteycz 5y agoUsually processing other requests
- atraac 5y agoI think any sane person here assumes any IO, especially in .NET is already async and allows other requests to use that time… Most web apps are still IO constrained.
- emteycz 5y agoSure, but how is waiting for external requests relevant in any way to .NET performance then?
- SideburnsOfDoom 5y agoIf you're asking "how is waiting for external requests relevant to my service's response time" the answer is "because it's usually the largest part". I really don't know how to explain it more simply than that. If you need to improve this, and that code is .NET, then the solution is a different design, also in .NET Code.
- emteycz 5y agoI am asking how is waiting for external services relevant to .NET processing time.
- SideburnsOfDoom 5y agoI refer you to my answer above. https://news.ycombinator.com/item?id=29306220 https://news.ycombinator.com/item?id=29306220