Skip to content

docs(workflow): document queue and database ownership by service#213

Draft
behinddwalls wants to merge 1 commit into
request-log-gateway-consumerfrom
preetam/request-log-ownership-doc
Draft

docs(workflow): document queue and database ownership by service#213
behinddwalls wants to merge 1 commit into
request-log-gateway-consumerfrom
preetam/request-log-ownership-doc

Conversation

@behinddwalls
Copy link
Copy Markdown
Collaborator

@behinddwalls behinddwalls commented Jun 5, 2026

Summary

Why?

Issue #211 (follow-up from PR #205) asks for a single place that records
the submitqueue topology at a high level: which service owns its data and
how the two services communicate. The workflow RFC already covers the
cross-queue flow, so ownership belongs alongside it.

What?

Append an "Ownership by service" section to doc/rfc/submitqueue/workflow.md,
described at a conceptual level rather than enumerating individual tables
and topics:

  • Gateway — RPC entry point and owner of the request log; the only service
    that reads or writes that record.
  • Orchestrator — runs the pipeline and owns its working state (requests,
    batches, builds); the only service that writes it.
  • Messaging queue — the shared, pluggable infrastructure the two services
    communicate through, kept in its own database separate from application
    data.

A closing "Request-log ownership invariant" section captures the rule: the
orchestrator only emits log events, the gateway is the sole consumer and
the only writer of the request log.

Documentation only; no code, schema, or proto changes.

Test Plan

  • make lint (clean tree)

Issue

Closes #211

Stack

  1. refactor(request-log): gateway is sole writer of request log #205
  2. @ docs(workflow): document queue and database ownership by service #213

@behinddwalls behinddwalls changed the title docs(workflow): document queue/db ownership, tiering, request-log invariant docs(workflow): document queue ownership and database ownership model Jun 6, 2026
@behinddwalls behinddwalls changed the title docs(workflow): document queue ownership and database ownership model docs(workflow): document queue and database ownership by service Jun 6, 2026
@behinddwalls behinddwalls force-pushed the preetam/request-log-ownership-doc branch 2 times, most recently from 8437031 to a297f25 Compare June 6, 2026 14:23
## Summary

### Why?

Issue #211 (follow-up from PR #205) asks for a single place that records
the submitqueue topology at a high level: which service owns its data and
how the two services communicate. The workflow RFC already covers the
cross-queue flow, so ownership belongs alongside it.

### What?

Append an "Ownership by service" section to doc/rfc/submitqueue/workflow.md,
described at a conceptual level rather than enumerating individual tables
and topics:

- Gateway — RPC entry point and owner of the request log; the only service
  that reads or writes that record.
- Orchestrator — runs the pipeline and owns its working state (requests,
  batches, builds); the only service that writes it.
- Messaging queue — the shared, pluggable infrastructure the two services
  communicate through, kept in its own database separate from application
  data.

A closing "Request-log ownership invariant" section captures the rule: the
orchestrator only emits log events, the gateway is the sole consumer and
the only writer of the request log.

Documentation only; no code, schema, or proto changes.

## Test Plan

- ✅ `make lint` (clean tree)

## Issue

Closes #211
@behinddwalls behinddwalls force-pushed the preetam/request-log-ownership-doc branch from a297f25 to 4ab6db2 Compare June 6, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant