This project demonstrates a simple implementation of a RabbitMQ consumer and producer in Go with automatic reconnection capabilities.
Explores the hypothesis of using a single connection for many channels, both for producers and consumers, in a RabbitMQ setup. This architectural choice aims to optimize resource usage and improve performance in scenarios with a large number of channels.
- go 1.21
- use the module:
go get github.com/afaf-tech/go-rabbitmq
# How to use the consumer
# How to use the producer
- Proper Logging
- Producer function
This project is licensed under the MIT License - see the LICENSE.md file for details.