3 ms·
CPU can do billions of operations every second. When you have 200ms for every request that overhead is not that large, you're still blocked by I/O.
by szatkus 6y ago
CPU can do billions of operations every second. When you have 200ms for every request that overhead is not that large, you're still blocked by I/O.
- zzzeek 6y agofor local services like databases, real world benchmarks disagree.
- szatkus 6y agoYou should add that you mean just databases. I've just looked at your profile and as I understand it's your focus. I built a service that was making a lot of requests. Much enough that at some point we've run out of 65k connections limit for basic Linux polling (we needed to switch to kpoll). Some time after that we've ran out of other resources and switching from threads to threads+greenlets really solved our problem.