Skip to content

Example of using worker pool when consume rabbitmq message

Notifications You must be signed in to change notification settings

kennykarnama/rabbitmq-worker-pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :

Usage

  1. Run file main.go file to start consuming
  2. Run file send.go file to send some messages

By 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

About

Example of using worker pool when consume rabbitmq message

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages