8000 Add documentation about GetQueueUrl and DSN format in SQS transport · symfony/symfony-docs@447065d · GitHub
[go: up one dir, main page]

Skip to content

Commit 447065d

Browse files
committed
< 8000 div class="Box-sc-g0xbh4-0 LoadingSkeleton-sc-695d630a-0 dNbsEP ihfxfT ml-2" width="62px">
Add documentation about GetQueueUrl and DSN format in SQS transport
1 parent 85aed22 commit 447065d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

messenger.rst

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ Amazon SQS
13001300

13011301
.. versionadded:: 5.1
13021302

1303-
The Amazon SQS transport as introduced in Symfony 5.1.
1303+
The Amazon SQS transport has been introduced in Symfony 5.1.
13041304

13051305
The Amazon SQS transport is perfect for application hosted on AWS. Install it by
13061306
running:
@@ -1314,14 +1314,25 @@ The SQS transport DSN may looks like this:
13141314
.. code-block:: env
13151315
13161316
# .env
1317-
MESSENGER_TRANSPORT_DSN=sqs://AKIAIOSFODNN7EXAMPLE:j17M97ffSVoKI0briFoo9a@sqs.eu-west-3.amazonaws.com/messages
1317+
MESSENGER_TRANSPORT_DSN=https://AKIAIOSFODNN7EXAMPLE:j17M97ffSVoKI0briFoo9a@sqs.eu-west-3.amazonaws.com/123456789012/messages
13181318
MESSENGER_TRANSPORT_DSN=sqs://localhost:9494/messages?sslmode=disable
13191319
13201320
.. note::
13211321

13221322
The transport will automatically create queues that are needed. This
13231323
can be disabled setting the ``auto_setup`` option to ``false``.
13241324

1325+
.. tip::
1326+
1327+
Before sending or receiving a message, Symfony needs to convert the queue
1328+
name into an AWS queue URL by calling the ``GetQueueUrl`` API in AWS. This
1329+
extra API call can be avoided by providing a DSN which is the queue URL.
1330+
1331+
.. versionadded:: 5.2
1332+
1333+
Providing a DSN equals to the queue URL to avoid call to ``GetQueueUrl``
1334+
has been introduced in Symfony 5.2.
1335+
13251336
The transport has a number of options:
13261337

13271338
====================== ====================================== ===================================

0 commit comments

Comments
 (0)
0