@@ -1811,6 +1811,27 @@ The transport has a number of options:
1811
1811
Use the stamp :class: `Symfony\\ Component\\ Messenger\\ Bridge\\ AmazonSqs\\ Transport\\ AmazonSqsFifoStamp `
1812
1812
to define the ``Message group ID `` and the ``Message deduplication ID ``.
1813
1813
1814
+ Another possibility is to enable the
1815
+ :class: `Symfony\\ Component\\ Messenger\\ Bridge\\ AmazonSqs\\ Middleware\\ AddFifoStampMiddleware `.
1816
+ If your message implements
1817
+ :class: `Symfony\\ Component\\ Messenger\\ Bridge\\ AmazonSqs\\ MessageDeduplicationAwareInterface `,
1818
+ the middleware will automatically add the
1819
+ :class: `Symfony\\ Component\\ Messenger\\ Bridge\\ AmazonSqs\\ Transport\\ AmazonSqsFifoStamp `
1820
+ and set the ``Message deduplication ID ``. Additionally, if your message implements the
1821
+ :class: `Symfony\\ Component\\ Messenger\\ Bridge\\ AmazonSqs\\ MessageGroupAwareInterface `,
1822
+ the middleware will automatically set the ``Message group ID `` of the stamp.
1823
+
1824
+ You can learn more about middlewares in
1825
+ :ref: `the dedicated section <messenger_middleware >`.
1826
+
1827
+ .. versionadded :: 6.4
1828
+
1829
+ The
1830
+ :class: `Symfony\\ Component\\ Messenger\\ Bridge\\ AmazonSqs\\ Middleware\\ AddFifoStampMiddleware `,
1831
+ :class: `Symfony\\ Component\\ Messenger\\ Bridge\\ AmazonSqs\\ MessageDeduplicationAwareInterface `
1832
+ and :class: `Symfony\\ Component\\ Messenger\\ Bridge\\ AmazonSqs\\ MessageGroupAwareInterface `
1833
+ were introduced in Symfony 6.4.
1834
+
1814
1835
FIFO queues don't support setting a delay per message, a value of ``delay: 0 ``
1815
1836
is required in the retry strategy settings.
1816
1837
@@ -2379,6 +2400,8 @@ are a variety of different stamps for different purposes and they're used intern
2379
2400
to track information about a message - like the message bus that's handling it
2380
2401
or if it's being retried after failure.
2381
2402
2403
+ .. _messenger_middleware :
2404
+
2382
2405
Middleware
2383
2406
~~~~~~~~~~
2384
2407
0 commit comments