Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 880 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 880 Bytes

📖 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.

Quick start

  1. Install Docker, Docker Compose and start their system services.
docker run --rm -it --hostname rabbitMQ -p 15672:15672 -p 5672:5672 rabbitmq:3-management
  1. 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