docs(rfc): consumer gate — runtime stop/start of individual queue controllers#374
Open
sbalabanov wants to merge 1 commit into
Open
docs(rfc): consumer gate — runtime stop/start of individual queue controllers#374sbalabanov wants to merge 1 commit into
sbalabanov wants to merge 1 commit into
Conversation
…trollers Adds the Consumer Gate RFC and links it from the RFC index. The RFC proposes a consumer middleware that parks deliveries in-flight (with periodic visibility extension, so no retry burn or DLQ) while a controller's gate is closed. Gate state is a separate extension at platform/extension/consumergate with a file-based first implementation, giving e2e tests and operators a stop/observe/start primitive for individual queue controllers without stopping the hosting service. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
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.
This RFC proposes a first-class stop/observe/start primitive for individual queue controllers: halt exactly one controller from taking new messages, observe some condition while it is stopped, then start it again — without stopping the service that hosts it. Motivations are deterministic e2e scenario control (interleaving in-flight messages across controllers) and operational pause of a consuming stage during incidents.
The mechanism is consumer middleware: a decorator installed around every registered controller consults gate state before invoking
Process. When the gate is closed, the delivery is parked in-flight — the decorator blocks and periodically extends the visibility timeout, so parked messages never burn retry budget, never hit the DLQ, and are redelivered normally if the process dies. When the gate opens, the delivery proceeds as the same attempt, in partition order.Gate state lives in a new shared extension at
platform/extension/consumergate, with a file-based first implementation usable by both e2e tests and operators. This is a design doc only — no code changes.🤖 Generated with Claude Code