Hi list, I started working with NodeJS quite recently, even if at first I was a little skeptical about it, after using it intensively for the last couple of months I realized it's an amazing piece of technology. The only thing that I miss from other frameworks is the concept of thread-locals.
After some time researching on this, a friend told me that this behavior could be achieved using domains [0]. I built a small framework, Kolba [1], as a proof of concept of how I see this being implemented. I also wrote an article explaining this idea and presenting some questions that I have. The main question that I want to ask here is: What am I missing? Why is this undocumented? Are there any edge cases that I don't see, which make this idea non-viable? Actually, the biggest problem I'm facing with the use of domain is the suppression of exceptions. I may be using it wrong probably, which leads to errors being silenced, but nothing regarding the emulation of thread-locals. Thanks, [0] http://nodejs.org/api/domain.html [1] https://github.com/tooxie/kolba [2] http://alvaro.mourino.net/2013/08/29/lets-build-a-framework.html -- Alvaro Mouriño -- -- 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 --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
