4 ms·
This talks about numbers of threads being as high as 1000. My job involves writing servers that can scale to at least 20,000 concurrent connections (I use Twis
by abstractbill 16y ago
This talks about numbers of threads being as high as 1000.
My job involves writing servers that can scale to at least 20,000 concurrent connections (I use Twisted for that, but I'm still interested to see what's happening in JavaLand).
I was disappointed the article didn't look at things at that kind of scale - it would be a much more impressive result if threaded/blocking io was still best at that level.
- metachris 16y agoThis article is just a summary of Paul Tyma's 2008 presentation (posted to HN yesterday): http://www.mailinator.com/tymaPaulMultithreaded.pdf http://www.mailinator.com/tymaPaulMultithreaded.pdf I am working on a multiplayer framework using Python, where one gameserver can potentially handle up to 50,000 concurrent socket connections (each interacting with a couple of other ones): http://www.flockengine.com http://www.flockengine.com epoll() is definitely the way to go - it's very fast with high numbers of sockets. - http://docs.python.org/library/select.html#edge-and-level-trigger-polling-epoll-objects http://docs.python.org/library/select.html#edge-and-level-tr... - http://linux.die.net/man/4/epoll http://linux.die.net/man/4/epoll