wagslane / go-rabbitmq

A wrapper of streadway/amqp that provides reconnection logic and sane defaults
https://blog.boot.dev/golang/connecting-to-rabbitmq-in-golang-easy/
MIT License
772 stars 126 forks source link

What happens when Concurrency is 0? #41

Closed lucaswxp closed 2 years ago

lucaswxp commented 2 years ago

From the code:

// WithConsumeOptionsConcurrency returns a function that sets the concurrency, which means that
// many goroutines will be spawned to run the provided handler on messages

Does that mean the option simply handle gorutines and has no effect on number of underlying consumers - actual rabbitmq consumers?

wagslane commented 2 years ago

Correct, it should be a single consumer with multiple goroutines