smoench / messenger-idle-doctrine-close-connection
Provides an idle based 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: 2024-10-29 05:53:38 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.