News for hackers. Stuff that matters.
Re:JavaScript on the server: Growing the Node.js Community by democracy on Monday January 23, 2012 @08:22PM (#3503013)
Could you please tell a few words about your application, if it is a million connections, it is a million * N database queries on the backend (for a typical web app)?

Would every request still stay in a queue, not on the front-end layer, but on database/storage/messaging/other middleware layer?

I am just wondering what are the benefits of moving a bottleneck one layer up?

Re:JavaScript on the server: Growing the Node.js Community by sh1mmer on Tuesday January 24, 2012 @06:23PM (#3507496)
Not an application, just a benchmark. There was some keep-alive, and a small amount of state being passed from memory, but nothing heavy. At that level of contention you'll easily saturate a core making the application useless.

My point is more that Node can support a very large amount of connections. Once you scale down to the tens or possibly low hundreds of thousands you can still do real work.

This is mostly useful when you have a server that is looking after a lot of things that don't communicate very often. Sensors is one application for example. While totally passive sensors can poll a server with their data, being able to hold open many very cheap connections allows you ask sensors for their data when the server wants it rather than on an interval. This can cut down the amount of unnecessary data sent a lot.

Re:JavaScript on the server: Growing the Node.js Community by weaksauce on Monday January 23, 2012 @11:13PM (#3503423)
Are you not using some sort of caching mechanism? a million queries to a db is probably going to kill it no matter what the front end.
Re:JavaScript on the server: Growing the Node.js Community by democracy on Tuesday January 24, 2012 @01:22AM (#3503714)
That's why I am wondering what types of applications require so many simultaneous connections. CDNs?
Re:JavaScript on the server: Growing the Node.js Community by superted on Tuesday January 24, 2012 @02:23AM (#3503826)
The classical application that comes to mind is a chat app.