This tutorial is more aimed at those who just want to understand how to working with a message broker in Go.
👉 The full article is published on March 31, 2021, on Dev.to: https://dev.to/koddr/working-with-rabbitmq-in-golang-by-examples-2dcn
- Install Docker, Docker Compose and start their system services.
- 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:
If you want more articles like this on this blog, then post a comment below and subscribe to me. Thanks! 😘
And, of course, you can support me by donating at LiberaPay. Each donation will be used to write new articles and develop non-profit open-source projects for the community.
MIT © Vic Shóstak & True web artisans.