Skip to content

feat: Add configurable visibility timeout renewal#6173

Merged
phatboyg merged 2 commits intoMassTransit:developfrom
sukanta1991:develop
Dec 15, 2025
Merged

feat: Add configurable visibility timeout renewal#6173
phatboyg merged 2 commits intoMassTransit:developfrom
sukanta1991:develop

Conversation

@sukanta1991
Copy link
Copy Markdown
Contributor

Made the visibility timeout extension configurable for Amazon SQS instead of the default 60 seconds. As there are use cases where in case of background task the compute is known to take more than 2 hours. In such cases if we use the default 60 seconds of extension when the default timeout of a message is set to 1 hour, 133 extra SQS api calls to complete this message operation, this can cause a significant AWS cost for message operations.

Having the capability to configure this make is more flexible.

I have tested this in my usecase, where the default timeout of the message is set to 1 hour and the message in average was taking nearly 2 hours to complete. After using this property to extend the visibility timeout for the message, I can see a significant reduction of the AWS SQS cost( used day to day comparison)

Points considered:

  • If the value for the extension is set to a value less than 60, its better to have it set to 60
  • Considered the boundary values allowed by Amazon SQS

@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Review Updated (UTC)
masstransit-documentation Ignored Ignored Preview Dec 15, 2025 4:34am

@sukanta1991 sukanta1991 changed the title feat: Add configurable visibility timeout extension feat: Add configurable visibility timeout renewal Dec 15, 2025
@phatboyg phatboyg merged commit f82caea into MassTransit:develop Dec 15, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants