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
785 stars 128 forks source link

producer connect pool #179

Closed Mikaelemmmm closed 2 months ago

Mikaelemmmm commented 3 months ago

I now have an API with very high qps, and I have to send mq every time I call the interface. I now use the same producer through jqeger to observe that the throughput does not seem to go up, and the sending is very slow. I wonder if I can join the connection pool to solve it? It is still under investigation.

Sent from PPHub

Mikaelemmmm commented 3 months ago

I adjusted the producer's ChannelMax=100 and found that the number of concurrencies has greatly improved. The default is 2047.

wagslane commented 2 months ago

Sounds like this isn't an issue with this library if I'm understanding the issue