Skip to content

docs(rfc): consumer gate — runtime stop/start of individual queue controllers#374

Open
sbalabanov wants to merge 1 commit into
mainfrom
rfc-consumer-gate
Open

docs(rfc): consumer gate — runtime stop/start of individual queue controllers#374
sbalabanov wants to merge 1 commit into
mainfrom
rfc-consumer-gate

Conversation

@sbalabanov

Copy link
Copy Markdown
Contributor

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

…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>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@sbalabanov sbalabanov marked this pull request as ready for review July 15, 2026 01:18
@sbalabanov sbalabanov requested review from a team and behinddwalls as code owners July 15, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants