Skip to content

Ja3mamtora/Node-RabbitMQ

Repository files navigation

Node-RabbitMQ

This repository contains Node.js examples for various messaging patterns using RabbitMQ.

Getting Started

Prerequisites

  • Node.js installed on your machine
  • Docker installed on your machine

Cloning the Repository

git clone https://github.com/Ja3mamtora/Node-RabbitMQ.git
cd Node-RabbitMQ

Setting Up RabbitMQ with Docker

docker run -d --name my-rabbit -p 5672:5672 rabbitmq

Installing Dependencies

npm install

Running the Examples

  • Producer-Consumer Pattern

Starting the Producer

cd producer-consumer
node producer.js

Starting the Consumer

cd producer-consumer
node consumer.js

Publisher-Subscriber Pattern

Starting the Publisher

cd publisher-subscriber
node publisher.js

Starting the Subscriber

cd producer-subscriber
node subscriber.js

About

MEP with RabbitMQ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published