smoench / messenger-idle-doctrine-close-connection
Provides an idle based doctrine close connection
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/smoench/messenger-idle-doctrine-close-connection
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: 2025-09-29 02:22:03 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.