# Symfony Messenger Integration: CQRS and Async Message Processing API Platform provides an integration with the [Symfony Messenger Component](https://symfony.com/doc/current/messenger.html). This feature allows to implement the [Command Query Responsibility Segregation (CQRS)](https://martinfowler.com/bliki/CQRS.html) pattern in a convenient way. It also makes it easy to send messages through the web API that will be consumed asynchronously. Many transports are supported to dispatch messages to async consumers, including RabbitMQ, Apache Kafka, Amazon SQS and Google Pub/Sub. ## Installing Symfony Messenger To enable the support of Messenger, install the library: $ docker-compose exec php composer require messenger ## Dispatching a Resource through the Message Bus Set the `messenger` attribute to `true`, and API Platform will automatically dispatch the API Resource instance as a message using the message bus provided by the Messenger Component: ```php