Skip to content

Instantly share code, notes, and snippets.

@x-yuri
Created October 31, 2019 22:08
Show Gist options
  • Select an option

  • Save x-yuri/abec36b04cdece9f328f444028e3454c to your computer and use it in GitHub Desktop.

Select an option

Save x-yuri/abec36b04cdece9f328f444028e3454c to your computer and use it in GitHub Desktop.
this is where we put our bugs
if (cluster.isMaster) {
  // ...
  // The important thing is that the master does very little,
  // increasing our resilience to unexpected errors.
  // ...
} else {
  // the worker
  //
  // This is where we put our bugs!
  // ...

https://nodejs.org/api/domain.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment