C10K is not even close to being a real problem any more. I expect my phone can handle 10K connections.
Making a million outbound connections, on the other hand, requires a little more care. Mostly because you need 16+ IPs. I ended up writing a small tool in C with libevent to make 1M http connections: http://www.metabrew.com/article/a-million-user-comet-applica...
Comments
C1M is the new C10K.
C10K is not even close to being a real problem any more. I expect my phone can handle 10K connections.
Making a million outbound connections, on the other hand, requires a little more care. Mostly because you need 16+ IPs. I ended up writing a small tool in C with libevent to make 1M http connections: http://www.metabrew.com/article/a-million-user-comet-applica...
you're only going to need 16+ IPs if you're making those outbound connections to the same destination IP & port... which seems unlikely.
You can do TCP listen on 0.0.0.0:80 (any IP on port 80), but I never saw TCP listen on XXX.XXX.XXX.XXX:* (specific IP with any port) ;)