smoench / messenger-idle-doctrine-close-connection
Provides an idle based doctrine close connection
Package info
github.com/smoench/messenger-idle-doctrine-close-connection
pkg:composer/smoench/messenger-idle-doctrine-close-connection
dev-master
2020-05-28 15:05 UTC
Requires
- php: ^7.2
- symfony/doctrine-bridge: ^4.4|^5.0
- symfony/event-dispatcher: ^4.4|^5.0
- symfony/messenger: ^4.4|^5.0
Requires (Dev)
- symfony/phpunit-bridge: ^5.0
This package is auto-updated.
Last update: 2026-03-01 00:31:37 UTC
README
The combination of DoctrinePingConnectionMiddleware and DoctrineCloseConnectionMiddleware on a queue with periodically incoming thousands of messages at the same time will results to heavy I/O operations. This subscriber will only close the connection when the worker is in idle mode insteadof close the connection after each message.