Re:Why events are a bad idea for high-concurrency servers (2...
by dirtydroog on Friday January 31, 2020 @07:44AM
(#22201155)
Didn't get past the opening paragraph. Sure, this is from 2003 but they're wrong. Look at redis.
Thread-per-connection is just plain dumb. Threads aren't free. Context-switching is a thing. Modern advice is to try not have more threads than cores. Thread-local storage is a very useful, having 1000's of thread may make TLS unfeasible.
Thread-per-connection is just plain dumb. Threads aren't free. Context-switching is a thing. Modern advice is to try not have more threads than cores. Thread-local storage is a very useful, having 1000's of thread may make TLS unfeasible.