https://github.com/sharmilas22/medium-rabbitmq-nodejs
rabbitmq - connect services, queue creation, sending message
https://github.com/sharmilas22/medium-rabbitmq-nodejs
amqp medium-article queue rabbitmq
Last synced: 6 months ago
JSON representation
rabbitmq - connect services, queue creation, sending message
- Host: GitHub
- URL: https://github.com/sharmilas22/medium-rabbitmq-nodejs
- Owner: SharmilaS22
- Created: 2022-01-24T10:07:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-24T10:15:39.000Z (over 3 years ago)
- Last Synced: 2025-03-27T09:12:40.631Z (7 months ago)
- Topics: amqp, medium-article, queue, rabbitmq
- Language: JavaScript
- Homepage: https://sharmilas.medium.com/get-started-with-rabbitmq-in-node-js-1adb18d019d0
- Size: 6.84 KB
- Stars: 15
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## RabbitMQ test
- Run rabbitmq (using docker)
```
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.9-management
```- Run the service one
```
cd service-one
```
```
npm i
```
```
node index.js
```- Run the service two
```
cd service-one
```
```
npm i
```
```
node index.js
```- GET request to http://localhost:4001/send-msg
A message is sent from service-one to Queue(names 'test-queue').
The message is read by service-two and logged.