Skip to content
Prev Previous commit
Next Next commit
feat: add amazon sqs to docs
  • Loading branch information
Simperfit authored and wouterj committed Oct 13, 2020
commit 9dd75a90d0ea067eadae91b8844ec44dcfcbb1ee
29 changes: 29 additions & 0 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,35 @@ during a request::
:class:`Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase`
or :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase`.

Amazon SQS
~~~~~~~~~~

.. versionadded:: 5.1

The Amazon SQS transport has been added in Symfony 5.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll make this change while merging, but for your information, the versionadded messages are standardized as: XXX was introduced in Symfony N.N.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

I leave this unchanged then.

Install it by running:

.. code-block:: terminal

$ composer require symfony/amazon-sqs-messenger

The ``SQS`` transport configuration looks like this:

.. code-block:: bash

# .env
MESSENGER_TRANSPORT_DSN=sqs://guest:guest@sqs.eu-west-3.amazonaws.com/test?region=eu-west-3


.. note::

By default, the transport will automatically create queue that are needed. That can be disabled.

The transport has a number of other options, including ways to configure
the exchange, queues binding keys and more. See the documentation on
:class:`Symfony\\Component\\Messenger\\Transport\\AmazonSqs\\Connection`.


Serializing Messages
~~~~~~~~~~~~~~~~~~~~

Expand Down