Skip to content

kenzchiiro/mq-service-golang

Repository files navigation

📖 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published