Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/burhon97/rabbitmq-nodejs


https://github.com/burhon97/rabbitmq-nodejs

Last synced: about 1 month ago
JSON representation

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.