This repository contains a Go application that demonstrates the use of RabbitMQ with delayed messages.
- Publish messages to RabbitMQ with a delay
- Consume delayed messages from RabbitMQ
- Configuration via environment variables
- Go 1.15 or higher
- RabbitMQ with the Delayed Message Plugin
-
Clone the repository:
git clone https://github.com/muthukumar89uk/go-rabbitmq-delayed-message.git
Click here to directly download it.
go mod tidy
-
Run the Server
go run .
-
The server will start on
http://localhost:8080
.
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.13-management