Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kennykarnama/rabbitmq-worker-pool
Example of using worker pool when consume rabbitmq message
https://github.com/kennykarnama/rabbitmq-worker-pool
concurrency go golang-chan rabbitmq-example worker-pool
Last synced: about 1 month ago
JSON representation
Example of using worker pool when consume rabbitmq message
- Host: GitHub
- URL: https://github.com/kennykarnama/rabbitmq-worker-pool
- Owner: kennykarnama
- Created: 2019-06-06T09:19:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-06T09:53:58.000Z (over 5 years ago)
- Last Synced: 2023-07-12T13:15:34.433Z (over 1 year ago)
- Topics: concurrency, go, golang-chan, rabbitmq-example, worker-pool
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rabbitmq-worker-pool
# Description
Example of using worker pool to consume rabbitmq message. The pattern to build the worker pool is based on these two writings :
- http://marcio.io/2015/07/handling-1-million-requests-per-minute-with-golang/
- https://medium.com/@j.d.livni/write-a-go-worker-pool-in-15-minutes-c9b42f640923# Usage
1. Run file `main.go` file to start consuming
2. Run file `send.go` file to send some messagesBy default, the consumer will consume from the channel specified within `config.go` file. Also, the number of workers spawned is 2.
You could change it inside the `config.go` file or add it if you want to customize it.# Contributions
Any PR and issue are appreciated. Thanks