News for hackers. Stuff that matters.
Re:The node.js aesthetic by koen on Wednesday November 30, 2011 @11:31AM (#3295581)
> A big part of what empowers node to make these kinds of interfaces possible is its asynchronous nature. No longer do you have statelessness imposed from on high by the likes of apache or rails. You can keep intermediate state around in memory just like in any ordinary program.

Should that not be:

A big part of what empowers node to make these kinds of interfaces possible is its "statefull" nature. ...

Really, that it is asynchronous is nice for performance (but only complicates the implementation). But the fact that you keep state in memory is indeed a big win for ease of implementation, and also performance, especially if state is not global but only relates to a single session. Of course, that is usually frowned upon by the web developer community which believes that this somehow hurts scalability (while it actually helps scalability).

Re:The node.js aesthetic by virmundi on Wednesday November 30, 2011 @03:26PM (#3296750)
I think the sessions in Node/Express are helpful when pair properly. For example, Express can use Redis as its session store. This has the benefit of making the session cross-cluster populated, while still being fast. Add to this the fact that almost everything in JS is serializable as itself and you get a pretty good replication mechanism.
Re:The node.js aesthetic by nknight on Wednesday November 30, 2011 @12:45PM (#3295913)
It's frowned upon by people who need high availability with minimum complexity of hardware and software configuration.

There's very little state one can reasonably store on a single web server without interrupting sessions if the server fails, and there's almost none you can store if you can't guarantee user X will always connect to server X for the duration of the session.

Not everyone must solve these problems, but they quickly come to the forefront for anything beyond rather low-traffic sites.