4 ms·
This helps a lot (I've been wondering the same thing about node). But if you're not waiting for database calls (or whatever) before you respond, what is it use
by callmeed 16y ago
This helps a lot (I've been wondering the same thing about node).
But if you're not waiting for database calls (or whatever) before you respond, what is it useful for?
I'm still a bit confused—some type of example and comparison (say with Rails) would help
- aaronblohowiak 16y agoMost web servers are bottlenecked on Io and memory. Assuming the bottleneck is that your app servers are starved for more data ( as opposed to trying to push out too much data to clients,) then a big part of your request cycle is waiting. Waiting for db, waiting for memcache, waiting for web service, waiting for disk to return some file, etc. The other thing is that your app servers will gobble ram. This is less true with copy on write, but ruby implementations and rails are usually very memory hungry. Node is not. Node is more like rack than rails, so it isn't fair to compare the two.