Symfony 8.1 brings multiple improvements to the Messenger component. Key additions include: batch message fetching with a --fetch-size option to reduce network round-trips; configurable service reset intervals (every N messages instead of every message); custom serialized type names via the #[AsMessage] attribute for cross-platform compatibility; per-message AMQP priority via AmqpPriorityStamp; idle timeout for batch handlers to flush partial batches; non-blocking PostgreSQL LISTEN/NOTIFY for multi-queue priority consumption; decode failures now routed through the normal retry/failure pipeline; Redis transport gains ListableReceiverInterface support; Redis Cluster can be configured via a single DSN endpoint; delayed quorum queues for AMQP use a per-day strategy to prevent premature expiration; write-only AMQP transports can disable default queue binding; and deduplication locks are released immediately on definitive message failure.
Table of contents
Batch Fetching MessagesConfigurable Service Reset IntervalCustom Serialized Type Name for MessagesPer-Message Priority on AMQPIdle Timeout for Batch HandlersNon-Blocking PostgreSQL LISTEN/NOTIFYDecode Failures Routed Through Failure HandlingListable Redis ReceiverForce Redis Cluster via DSNDelayed Quorum Queues for AMQPDisable Default AMQP Queue BindingRelease Deduplication Lock on Definitive FailureSort: