Symfony Messenger
summary
Fast, practical demo of Symfony Messenger: message buses, middleware and envelope stamps used to route messages to transports (Doctrine or RabbitMQ) and run workers with bin/console messenger:consume. Shows a small betting app, adds a delete message and an audit middleware, demonstrates immutable Envelope (must reassign after with()), and carries a message identifier stamp so logs match across web and worker. Covers delay stamps, default retry strategy (3 tries with exponential backoff), failed-transport to store and manually retry failed messages, and a custom HTTP transport example that works end-to-end.
AI-written summary · about
chapters (15)
- 0:00Introduction to Symfony Messenger
- 1:10Core concepts of Messenger
- 13:11Setting up the demo app
- 26:39Creating first message and handler
- 37:06Understanding middleware
- 45:23Building an audit middleware
- 53:29Synchronous vs asynchronous processing
- 1:01:14Configuring RabbitMQ transport
- 1:14:04Tracking message lifecycle with stamps
- 1:25:53Creating custom stamps
- 1:36:32Delaying message execution
- 1:38:21Handling failures and retries
- 1:45:36Configuring retry strategies
- 1:53:43Failed transport and recovery
- 2:01:05Creating custom transports
related talks
23mSymfony Messenger: Messages, Queues, Workers and more
44mSymfony Messenger: Messages, Queues, Workers and more
44mAn Introduction to Symfony Messenger
39mMastering message Queues
41mSymfony Messenger: Queues, Workers and Much More!
50mSymfony Messenger: the sharpest tool in your PHP toolbox
43mAsync with Messenger, AMQP and Mercure
50mAn Introduction to the Symfony Messenger Component
