Skip to content

Workaround for symfony messenger that fixes issues with RabbitMQ on AWS losing connection when connection stays idle for longer time

License

Notifications You must be signed in to change notification settings

jkobus/symfony-messenger-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This workaround fixes issues with RabbitMQ on AWS losing connection when connection stays idle for longer than 350 sec.

Solution is simple - use single connection with multiple channels rather than multiple connections each with one channel. By default, Symfony creates new connection per transport, even if the transport uses the same server. We override this behaviour by reusing previously opened connection. Thanks to this, it won't be idle, as the consumer will keep asking for new messages often enough to keep it alive.

About

Workaround for symfony messenger that fixes issues with RabbitMQ on AWS losing connection when connection stays idle for longer time

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages