RabbitMQ & Kafka use sample
How to run
- Run the local RabbitMQ (case of MacOS below):
brew install rabbitmq rabbitmqctl status (ensure the port 5672 is being listened by AMQP) rabbitmq-server start (in case if it is not running)
- Run the Producer app:
cd rabbitmq/ go run .
It will end immidiately after sending the message to the RabbitMQ queue
- Run the Consumer app:
cd rabbitmq/consumer go run .
It will connect to the RabbitMQ queue and print all the messages awaiting