File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1839,6 +1839,23 @@ The transport has a number of options:
18391839 FIFO queues don't support setting a delay per message, a value of ``delay: 0 ``
18401840 is required in the retry strategy settings.
18411841
1842+ .. note ::
1843+
1844+ AWS SQS supports fair queue processing in standard queues (not FIFO queues)
1845+ by using the ``MessageGroupId `` parameter. This allows messages to be
1846+ processed fairly across multiple message groups without requiring a FIFO
1847+ queue, which is useful for multi-tenant applications where you want to
1848+ prevent one tenant from monopolizing queue processing.
1849+
1850+ To enable fair queue processing, add the
1851+ :class: `Symfony\\ Component\\ Messenger\\ Bridge\\ AmazonSqs\\ Transport\\ AmazonSqsFairQueueStamp `
1852+ to your message envelope with a tenant or group identifier. If both
1853+ :class: `Symfony\\ Component\\ Messenger\\ Bridge\\ AmazonSqs\\ Transport\\ AmazonSqsFifoStamp `
1854+ and
1855+ :class: `Symfony\\ Component\\ Messenger\\ Bridge\\ AmazonSqs\\ Transport\\ AmazonSqsFairQueueStamp `
1856+ are present on the same message, the FIFO stamp takes precedence. The fair queue stamp
1857+ only works on standard queues and has no effect on FIFO queues.
1858+
18421859The SQS transport supports the ``--keepalive `` option by using the ``ChangeMessageVisibility ``
18431860action to periodically update the ``VisibilityTimeout `` of the message.
18441861
You can’t perform that action at this time.
0 commit comments