3 ms·
You don't need to scale up to solve a problem of slow active connections. You just need to use a frontend web server that doesn't allocate a thread/process per
by Dylan16807 16y ago
You don't need to scale up to solve a problem of slow active connections. You just need to use a frontend web server that doesn't allocate a thread/process per connection.
- eps 16y agoEach connection has a state attached to it - be it a TCP socket state in the kernel or an application-level state like that maintained by a web server. Create sufficient amount of connections and you will exhaust server's memory. A thread per connection is merely a way to trigger the very same problem faster.
- deleted 16y ago[deleted]
- Dylan16807 16y agoSure, a bit of state, but if you have a server designed to maximize connections you can handle orders of magnitude more than something like apache. Then you reach a point where being able to handle traffic below the absolute network-crushing level isn't very hard to do.