Skip to content

Instantly share code, notes, and snippets.

@WaleedAshraf
Created March 23, 2018 17:26
Show Gist options
  • Save WaleedAshraf/442be09f1fe7218302728d8d51ab130c to your computer and use it in GitHub Desktop.
Save WaleedAshraf/442be09f1fe7218302728d8d51ab130c to your computer and use it in GitHub Desktop.
Switching from cluster module to PM2 & RabbitMQ
process.on('message', function(data) {
sendSMS(data); // use twilio or something to send sms
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment