Code from Hussein Nasser's RabbitMQ Crash Course
- Run
docker run --name rabbitmq -p 5672:5672 rabbitmq
- Run
npm run publish
- Messages will be sent to the queue
- Run
npm run consume
- All messages in the queue will be received and acknowledged. If messages are not acknowledged they remain in the queue.