This tutorial is more aimed at those who just want to understand how to working with a message broker in Go.
- Install Docker, Docker Compose and start their system services.
docker run --rm -it --hostname rabbitMQ -p 15672:15672 -p 5672:5672 rabbitmq:3-management
- Run containers with the RabbitMQ, Fiber and consumer by this command:
make run
- Make HTTP request to the API endpoint:
curl \
--request GET \
--url 'http://localhost:3000/send?msg=test'
- Go to RabbitMQ awesome dashboard localhost:5672 and see
QueueService1
queue with sent messages: