Skip to content

Commit 136ae1e

Browse files
SimperfitNyholm
authored andcommitted
feat: add amazon sqs to docs
1 parent eb962cf commit 136ae1e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

messenger.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,6 +1268,35 @@ during a request::
12681268
:class:`Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase`
12691269
or :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase`.
12701270

1271+
Amazon SQS
1272+
~~~~~~~~~~
1273+
1274+
.. versionadded:: 5.1
1275+
1276+
The Amazon SQS transport has been added in Symfony 5.1
1277+
Install it by running:
1278+
1279+
.. code-block:: terminal
1280+
1281+
$ composer require symfony/amazon-sqs-messenger
1282+
1283+
The ``SQS`` transport configuration looks like this:
1284+
1285+
.. code-block:: bash
1286+
1287+
# .env
1288+
MESSENGER_TRANSPORT_DSN=sqs://guest:guest@sqs.eu-west-3.amazonaws.com/test?region=eu-west-3
1289+
1290+
1291+
.. note::
1292+
1293+
By default, the transport will automatically create queue that are needed. That can be disabled.
1294+
1295+
The transport has a number of other options, including ways to configure
1296+
the exchange, queues binding keys and more. See the documentation on
1297+
:class:`Symfony\\Component\\Messenger\\Transport\\AmazonSqs\\Connection`.
1298+
1299+
12711300
Serializing Messages
12721301
~~~~~~~~~~~~~~~~~~~~
12731302

0 commit comments

Comments
 (0)