docs(batching): settlement model + durability requirement (GH-3289 Phase 0)#3299
Merged
Conversation
…r batched processing (GH-3289) Phase 0 of the #3289 batch-processing plan. Adds a "Durability and message settlement" section to the batching guide making explicit that a durable (persistent) listener is required for guaranteed delivery of batched processing. - Settlement table: durable defers settlement until the batch succeeds (loss-proof); inline/buffered settle members before the batch runs (lost on a crash during accumulation). - Explains the mechanics (Envelope.InBatch + DurableReceiver.CompleteAsync early-return) and why deferred inline settlement is deliberately not offered. - Documents the lock-window caveat as prose (covers deferred item 4): on lock-based transports the accumulation window + processing time must fit inside the broker lock/visibility duration or messages are redelivered while still buffered. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jul 5, 2026
Merged
Merged
This was referenced Jul 9, 2026
Merged
This was referenced Jul 14, 2026
Open
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.
Phase 0 of the #3289 batch-processing plan. Documentation only.
What & why
The single most surprising thing in the #3289 proposal is that batched member messages are settled at different times depending on endpoint mode, and only the durable inbox defers settlement until the batch actually succeeds. Today that is undocumented, so users reasonably (but wrongly) assume peek-lock semantics carry through batching. This PR closes that gap.
Adds a "Durability and message settlement" section to
docs/guide/handlers/batching.md:Envelope.InBatch+DurableReceiver.CompleteAsyncearly-return atsrc/Wolverine/Runtime/WorkerQueues/DurableReceiver.cs:196) and notes that deferred inline settlement is deliberately not offered (it would need transport-specific lock renewal; the durable inbox already solves loss uniformly).DeliveryCount.Scope
No code changes. Subsequent phases (IBatchContext, CoalesceBy, the collision diagnostic, and the partial-failure isolation family) will land as separate PRs per the plan.
🤖 Generated with Claude Code