3 ms·
Does nodejs protect against slow requests (probably not) ?
by ddorian43 10y ago
Does nodejs protect against slow requests (probably not) ?
- andris9 10y agoSlow requests are not an issue as all connections are handled by the same process. If a connection gets idling or slow, then it does not take almost any resources (compared to apache where a separate process is spawned to handle that request)
- xorcist 10y ago> compared to apache where a separate process is spawned That's not how Apache works. If your glibc is >= 2.3.2 (we're talking 2004 or newer) the default mode is epoll ("event" MPM), otherwise you will get a threadpool ("worker" MPM), and failing that you will get a processpool ("prefork" MPM). It will never spawn a process to handle a request, unless you forcibly enable prefork mode with a pool size of 1.
- andris9 10y agoSure, I agree that my knowledge about Apache internals might be severely outdated. And I can't really blame Apache either because it's a very small box, in a larger one it might have quickly stabilized