RSMQ- Message queueing with Node js and Redis

So what is message queuing?

#install the package  on to your existing node application npm install rsmq --save 
touch emailque.js#just creat a file in a directory that's more suitable for you
require('./path_to /emailqueue').create()
#Lets get a fresh install here
mkdir service_worker && cd service_worker/
npm init -y
npm install rsmq-worker --save
touch emailworker.js
touch mail.js
/*copy the module that you used to send mail and
export it as a function
*/

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store