An open API service indexing awesome lists of open source software.

https://github.com/koddr/tutorial-go-fiber-rabbitmq

πŸ“– Tutorial: Working with RabbitMQ in Golang by examples.
https://github.com/koddr/tutorial-go-fiber-rabbitmq

fiber-framework golang message-broker queue rabbitmq tutorial tutorial-code tutorial-sourcecode

Last synced: 12 months ago
JSON representation

πŸ“– Tutorial: Working with RabbitMQ in Golang by examples.

Awesome Lists containing this project

README

          

# πŸ“– 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](https://www.docker.com/get-started), Docker Compose and start their system services.
2. Run containers with the RabbitMQ, [Fiber](https://github.com/gofiber/fiber) and consumer by this command:

```bash
make run
```

3. Make HTTP request to the API endpoint:

```console
curl \
--request GET \
--url 'http://localhost:3000/send?msg=test'
```

4. Go to RabbitMQ awesome dashboard [localhost:5672](http://localhost:5672) and see `QueueService1` queue with sent messages:

![Screenshot](https://user-images.githubusercontent.com/11155743/113058619-0bec2480-91b7-11eb-9f0f-1102ea69f2fd.png)

## 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](https://liberapay.com/koddr/donate). _Each donation will be used to write new articles and develop non-profit open-source projects for the community._

[![Support author at LiberaPay](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zq8442cqyjq2i1jdeay8.png)](https://liberapay.com/koddr/donate)

## ⚠️ License

MIT Β© [Vic ShΓ³stak](https://shostak.dev/) & [True web artisans](https://1wa.co/).