https://github.com/zizaco/rabbitmq-poc
CLI program to play around with RabbitMQ
https://github.com/zizaco/rabbitmq-poc
Last synced: 2 months ago
JSON representation
CLI program to play around with RabbitMQ
- Host: GitHub
- URL: https://github.com/zizaco/rabbitmq-poc
- Owner: Zizaco
- Created: 2018-03-29T05:12:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-29T05:14:09.000Z (about 7 years ago)
- Last Synced: 2025-03-24T04:37:23.581Z (3 months ago)
- Language: JavaScript
- Size: 104 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RabbitMQ POC
**Why:** To play around with RabbitMQ and quick test scenarios to find out the fit for specific projects.
**What:** CLI program to test topic exchanges settings such as queue auto-delete, x-expire, etc. The idea is to have a quick example to tweak settings and quickly test scenarios.
---------------------------------

## Concepts
Learn more about RabbitMQ: [rabbitmq.com/getstarted.html](https://www.rabbitmq.com/getstarted.html)
Comparison with Apache Kafka: [pivotal.io/rabbitmq/understanding-when-to-use-rabbitmq-or-apache-kafka](https://content.pivotal.io/rabbitmq/understanding-when-to-use-rabbitmq-or-apache-kafka)
## Getting started / Prerequisites / Dependencies
First of all, make sure that you have a RabbitMQ server running on `localhost:5672`. The easier way to do that is throught docker:
```
# Run rabbitmq server
docker run --rm --hostname my-rabbit --name some-rabbitmq -p 5672:5672 rabbitmq:3
```Use the `./index.js [topic]` as a entry point. Initialize multiple terminal instances in order to be able to see the message delivery.
```
# Run producer
./index producer rabbitpoc.type.message# (In a second terminal) run the consumer program
./index consumer rabbitpoc.type.*
```Fell free to run multiple consumers, stop, start services and play around with the code.