On Mon, Feb 13, 2012 at 5:18 PM, Matt <[email protected]> wrote: > On Mon, Feb 13, 2012 at 4:28 PM, Tim Caswell <[email protected]> wrote: >> >> But node wins over apache and nginx by having the right >> event model. > > > Maybe over Apache, but you need to read more about nginx.
Sorry, that period was a typo. I know that nginx is event based too. my point was that high-level algorithms matter more than the constant overhead of the vm sometimes. > >> >> Node serving a static file from >> memory is faster than nginx serving the same file from disk. > > > Benchmarks please. I very much doubt that. I've benchmarked it before, but it should be obvious too. Node is doing less work than nginx in this case. (writing an already buffered response to the socket is much easier than reading a file from disk and then sending it to the socket. Even sendfile has to spin up the disk even if the kernel is doing the rest) The point is we're not doing the same thing. Nginx is really good at what it's written for. Node is really good at what it's written for and that can include serving static resources with business logic smarts scripted in. > > Matt. > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
