Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muthukumar89uk/go-rabbitmq-delayed-message
https://github.com/muthukumar89uk/go-rabbitmq-delayed-message
delayed-tasks go golang-application mux-router rabbitmq rabbitmq-consumer rabbitmq-producer rabbitmq-server scheduled-tasks
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/muthukumar89uk/go-rabbitmq-delayed-message
- Owner: muthukumar89uk
- Created: 2024-07-29T14:00:58.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-07-31T15:25:25.000Z (6 months ago)
- Last Synced: 2024-07-31T17:09:38.185Z (6 months ago)
- Topics: delayed-tasks, go, golang-application, mux-router, rabbitmq, rabbitmq-consumer, rabbitmq-producer, rabbitmq-server, scheduled-tasks
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Golang RabbitMQ Delayed Messages
This repository contains a Go application that demonstrates the use of RabbitMQ with delayed messages.
## Features
- Publish messages to RabbitMQ with a delay
- Consume delayed messages from RabbitMQ
- Configuration via environment variables## Requirements
- Go 1.15 or higher
- RabbitMQ with the [Delayed Message Plugin](https://github.com/rabbitmq/rabbitmq-delayed-message-exchange)## Getting Started
### Installation
1. Clone the repository:
```
git clone https://github.com/muthukumar89uk/go-rabbitmq-delayed-message.git
```
Click here to directly [download it](https://github.com/muthukumar89uk/go-rabbitmq-delayed-message/zipball/master).### Install dependencies:
go mod tidy
### Run the Application
1. Run the Server
```
go run .
```
2. The server will start on `http://localhost:8080`.## Run the RabbitMQ Server Using Docker
### Latest RabbitMQ 3.13
```
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.13-management
```## Refer
- [RabbitMQ](https://www.rabbitmq.com/)
- [RabbitMQ Delayed Message Plugin](https://github.com/rabbitmq/rabbitmq-delayed-message-exchange)
- [streadway/amqp](https://github.com/streadway/amqp)