Skip to content

koddr/tutorial-go-fiber-rabbitmq

Repository files navigation

📖 Tutorial: Working with RabbitMQ in Golang by examples

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

Quick start

  1. Install Docker, Docker Compose and start their system services.
  2. Run containers with the RabbitMQ, Fiber and consumer by this command:
make run
  1. Make HTTP request to the API endpoint:
curl \
    --request GET \
    --url 'http://localhost:3000/send?msg=test'
  1. Go to RabbitMQ awesome dashboard localhost:5672 and see QueueService1 queue with sent messages:

Screenshot

P.S.

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.

Support author at LiberaPay

⚠️ License

MIT © Vic Shóstak & True web artisans.