Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

[SQS] Auto extend visibility timeout for long tasks #635

@aniketbhatnagar

Description

@aniketbhatnagar

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 #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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions