Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/burhon97/rabbitmq-nodejs
https://github.com/burhon97/rabbitmq-nodejs
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/burhon97/rabbitmq-nodejs
- Owner: burhon97
- Created: 2023-07-21T04:07:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-04T14:17:08.000Z (over 1 year ago)
- Last Synced: 2023-08-04T15:27:55.612Z (over 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- 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.