It's a little early for best practices. We should get people to post in this thread after they instrument domains in to their libraries and link to the diff.
-Mikeal On Jun 25, 2012, at June 25, 20121:02 PM, Garrett Johnson wrote: > Now that v0.8 is official, I am interested to see how others are using > domains and any best practices that may start to form as far as handling > exceptions (aka domain error events) goes. I think the line between whether a > process must be restarted or not is a bit blury. Obviously something that is > more request/connection dependent, such as accessing an unavailable resource > that is specific to that request/connection, it would make sense to elegantly > terminate just that connection. > > However, I have seen in the past that exceptions can cause some pretty hairy > situations, especially with modules that maintain states (like protocol > parsers, etc). Perhaps in these situations it would be best to restart? If > so, should it be graceful or a hard shutdown? > > Thoughts? > > -- > 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
