answear/messenger-heartbeat-bundle
Pros:
Cons:
symfony/amqp-messenger:^7.2 may complicate upgrades if the underlying transport evolves (e.g., protocol changes in RabbitMQ).bundles.php edits required.--keepalive flag on messenger:consume commands, isolating changes to worker processes.symfony/amqp-messenger; incompatible with other transports.transport.connection events and broker-specific health checks (e.g., RabbitMQ’s management plugin).--keepalive interval if needed (e.g., 30s for idle workers).ext-amqp and symfony/amqp-messenger. Deprecations in these packages could orphan the bundle.--keepalive only in staging/prod) or custom worker scripts.Stopwatch?)heartbeat connection parameter) or custom solutions (e.g., health check endpoints)?symfony/monolog-bundle).composer why-not answear/messenger-heartbeat-bundle
composer require answear/messenger-heartbeat-bundle
AnswearMessengerHeartbeatBundle appears in config/bundles.php (Symfony Flex auto-registers it).config/ changes required. Enable via CLI flags:
# For async workers
php bin/console messenger:consume async -vv --keepalive
# For failed message retries
php bin/console messenger:failed:retry --keepalive
grep "Heartbeat" var/log/dev.log
tc qdisc on Linux) and verify workers recover.transport.connection events to validate connection state.symfony/messenger:^7.2 with AMQPTransport.messenger:consume, messenger:failed:retry).--keepalive flag; ensure processes inherit the flag (e.g., via supervisord or Docker).How can I help you explore Laravel packages today?