Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: increase lambda worker default message retention period #79

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

malcyL
Copy link
Contributor

@malcyL malcyL commented Aug 14, 2023

We have been defaulting to 4 days for message retention on SQS queues in the LambdaWorker. This has been the same for both the main queue and the workers DLQ.

This hasn't caused a problem - the LambdaWorker enforces having an alarm so we always get an alarm if there are messages on the DLQ in production and they are always dealt with in time.

However, in a none production environment recently, we left messages on a DLQ during the August holiday season, assuming the retention period was 14 days. They expired after 4 days. This was not a live environment, so no production issue occurred, but it highlighted that we are still using the default 4 days.

This PR increases the retention period on the queues to the maximum 14 days. There is no reason for this to be set to anything less - especially in production and on DLQ's.

This PR does not make the retention period configurable - it enforces a policy of always using the maximum of 14 days intentionally.

@malcyL malcyL merged commit 4c7bd4d into main Aug 14, 2023
13 checks passed
@malcyL malcyL deleted the PLAT_6600_LambdaWorkerQueueRetention branch August 14, 2023 08:17
@talisaspire
Copy link
Collaborator

🎉 This PR is included in version 2.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants