Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

maxbaldanza
Copy link
Contributor

@maxbaldanza maxbaldanza commented Jun 10, 2025

Q A
Branch? 7.4
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #45104
License MIT

As mentioned on the linked issue this has a number of benefits but mainly

  • The consumer no longer needs to be able to send messages into the queue.
  • Less chance of message loss

Allow SQS to handle retries rather then handling this by Symfony.
This allows applications to use the retry strategy from SQS rather then Symfony.
The default is for the message to be deleted from SQS at which point Symfony
will handle the retry by then adding back in to the queue.
If delete_on_rejection is set to false instead it will change the message
visibility of the message on SQS and thus SQS to handle the retry mechanism

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html

@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "7.4" but it seems your PR description refers to branch "7.4 for features".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

@maxbaldanza maxbaldanza changed the title [Messenger] Allow SQS to handle it's own retry/DLQ [Messenger] Allow SQS to handle its own retry/DLQ Jun 11, 2025
@maxbaldanza
Copy link
Contributor Author

Hey!

Thanks for your PR. You are targeting branch "7.4" but it seems your PR description refers to branch "7.4 for features". Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

Thanks Carsonbot I fixed the mistake

Allow SQS to handle retries rather then handling this by Symfony.
This allows applications to use the retry strategy from SQS rather then Symfony.
The default is for the message to be deleted from SQS at which point Symfony
will handle the retry by deleting and then adding back in to the queue.
If `delete_on_rejection` is set to `false` instead it will change the message
visibility of the message on SQS and thus SQS to handle the retry mechanism
@fabpot
Copy link
Member

fabpot commented Aug 6, 2025

Thank you @maxbaldanza.

@fabpot fabpot merged commit 786b573 into symfony:7.4 Aug 6, 2025
11 checks passed
@maxbaldanza maxbaldanza deleted the sqs-retry branch August 6, 2025 09:14
nicolas-grekas added a commit that referenced this pull request Oct 16, 2025
…eguif)

This PR was merged into the 7.4 branch.

Discussion
----------

[Messenger] Add retry delay on amazon sqs transport

| Q             | A
| ------------- | ---
| Branch?       | 7.4
| Bug fix?      | no
| New feature?  | yes <!-- if yes, also update src/**/CHANGELOG.md -->
| Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md -->
| Issues        | Fix #... <!-- prefix each issue number with "Fix #"; no need to create an issue if none exists, explain below -->
| License       | MIT

This follows #60754 by allowing to configure a retry delay other than the queue visibility timeout when using the retry mechanism from AWS.
The new configuration parameter only works when `delete_on_rejection` is set to `false`

Commits
-------

ac9b312 [Messenger] Add retry delay on amazon sqs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Symfony SQS Transport not compatible with SQS-DLQs

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.