spring-cloud-aws icon indicating copy to clipboard operation
spring-cloud-aws copied to clipboard

[SQS] Auto extend visibility timeout for long tasks

Open aniketbhatnagar opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. When processing background tasks that take long and having varying time to complete, it's not efficient to set the SQS queue's visibility timeout to be very high. It would be great if the SQS poller could auto extend visibility timeout (until possible) for messages that are being processed.

Describe the solution you'd like An option like https://camel.apache.org/components/latest/aws2-sqs-component.html (extendMessageVisibility option) or https://github.com/TomFrost/Squiss (opts.autoExtendTimeout).

Describe alternatives you've considered Current alternate is to use Visibility parameter added in https://github.com/spring-cloud/spring-cloud-aws/pull/215 in each listener method to either upfront increase visibility or increase it via a background thread. It would be great if listener implementations do not have to worry about it.

aniketbhatnagar avatar Jul 22 '20 15:07 aniketbhatnagar