NATS, a lightweight, high-performance cloud native messaging system. I explore the beauty of NATS by developing this elegant publishing and listening service. In the process, I created some set of abstracted reusable utilities.
-
Make sure that docker is installed
-
Start your docker desktop engine
-
In the root of the project, run this command:
docker-compose up
-
In the same vein, install all the dependencies by running this command:
npm install
-
Start the publisher with this command:
npm run publish
-
Start the listener with this command:
npm run listen