Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanzharanarbay/golang_rabbitmq_example
Implementation of rabbitmq consumer and producer in golang with docker deployment
https://github.com/sanzharanarbay/golang_rabbitmq_example
amqp docker docker-compose go golang rabbit-mq rabbitmq rabbitmq-consumer rabbitmq-exchange rabbitmq-management rabbitmq-producer
Last synced: about 1 month ago
JSON representation
Implementation of rabbitmq consumer and producer in golang with docker deployment
- Host: GitHub
- URL: https://github.com/sanzharanarbay/golang_rabbitmq_example
- Owner: sanzharanarbay
- License: mit
- Created: 2022-11-05T09:27:59.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-12T09:47:01.000Z (about 2 years ago)
- Last Synced: 2024-11-15T00:27:27.725Z (about 2 months ago)
- Topics: amqp, docker, docker-compose, go, golang, rabbit-mq, rabbitmq, rabbitmq-consumer, rabbitmq-exchange, rabbitmq-management, rabbitmq-producer
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadME.md
- License: LICENSE.md
Awesome Lists containing this project
README
#Golang rabbit-mq example
## How to run rabbitmq and application
- docker-compose build --no-cache
- docker-compose up -d
- docker-compose ps
- docker-compose logs -f {service-name}
- send POST request to API' , http://127.0.0.1:8080/api/v1/rabbit-mq/push , for pushing messages
- docker-compose down (if you want to stop and remove containers)____
```
Body
{
"id":1,
"fio":"Sanzhar Anarbay",
"department":"Test",
"age":23,
"mark":3.45
}
```____
- visit http://localhost:15672/ - (GUI RabbitMQ management ) , (login, password shown in .env file)
- visit http://localhost:9000/ - Portainer (GUI Docker containers)
- In portainer open producer-api container and see the logs , to check the message delivery status
- In portainer open consumer and see the logs , to check is consumer handle the message from the queue
- There are in general 3 .env files, in root directory , also in the consumer and producer-api directories
____