feat(sqs): add delivery mode for at-least-once and at-most-once reads - #124
Merged
Divyanshu Tiwari (divyanshu-tiwari) merged 3 commits intoSep 15, 2026
Merged
Conversation
Default stays at-least-once so existing pipelines keep deferred ack. Opt into at-most-once to delete on receive when FIFO group throughput matters.
Divyanshu Tiwari (divyanshu-tiwari)
requested a review
from a team
as a code owner
September 15, 2026 13:43
… mode Tests that needed the interface are throwaway. Unknown delivery values fail in Init; empty defaults to at-least-once in the same switch.
Restore concurrent DeleteMessage for at-most-once by settling an ack immediately and handing it to the existing tracker, so concurrency still bounds in-flight deletes and the receive loop is not blocked on each RTT.
Mahesh Kamble (ma-gk)
approved these changes
Sep 15, 2026
Divyanshu Tiwari (divyanshu-tiwari)
deleted the
feat/sqs-delivery-mode
branch
September 15, 2026 14:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
deliveryfield:at-least-once(default, current deferred-ack behavior) orat-most-once(delete on receive so FIFO groups are not blocked by downstream work).exactly-onceis reserved and rejected atInit; SQS cannot consume exactly-once.delivery: at-most-once.Test plan
deliveryfield still defersDeleteMessageuntil downstream finishes.delivery: at-most-onceon a FIFO reader and confirm receipts are deleted immediately and later messages in the group can be received while downstream is still running.delivery: exactly-onceand unknown values fail at startup.