Skip to content

docs(rfc): define distributed Artifact processing handoff - #3052

Open
Lumea-art wants to merge 1 commit into
oceanbase:masterfrom
Lumea-art:docs/distributed-artifact-processing
Open

Lumea-art wants to merge 1 commit into
oceanbase:masterfrom
Lumea-art:docs/distributed-artifact-processing

Conversation

@Lumea-art

Copy link
Copy Markdown
Contributor

Part of #3013.

Change

Adds the distributed-consumption design to RFC 1515 (en/zh):

  • Optional mode: local in-memory queues remain the default; distributed workers share durable storage and require explicit configuration.
  • DB outbox: accepted intent and outbox notification commit together; the broker carries only task_id + stable (binding, scope, generation) refs. Publication failure/lost ack becomes retryable outbox backlog, not lost work.
  • Per-key ownership: (binding_name, scope_id) lease with ownership_generation, database-time claim and handoff grace. Processor writes validate the fence in the same transaction.
  • Handoff: a missed heartbeat is not proof of death; takeover waits for lease + grace. The old worker may finish a model call but cannot advance a cursor, publish or ack; the new owner repeats a call only when no durable step completion exists. External calls are explicitly at-least-once.
  • Ack/recovery: ack after durable completion/fence; commit-before-ack, duplicate/stale delivery, broker disconnect and poison messages have defined recovery.
  • Adapters, observability, migration: local adapter + proposed Redis Streams/NATS JetStream pair, deployment backlog vs node-local counts, additive outbox/ownership tables, no mixed local/distributed workers in the first release.

The proposed configuration env names are marked provisional; the first implementation PR can follow after this design is agreed.

Validation

  • English and Chinese RFC sections are structurally parallel and add no code/table changes in this PR.

AI assistance

Authored with AI assistance and reviewed by the contributor before submission.

@hireview001 hireview001 added the module:knowledge-base Primary module: knowledge base import, processing and retrieval label Dec 4, 2026
@hireview001

Copy link
Copy Markdown
Collaborator

The affected modules are Knowledge base. @Zxf-xufeng, please coordinate follow-up. Knowledge base: @Zxf-xufeng @Alanxtl. Please coordinate the review of the affected changes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:knowledge-base Primary module: knowledge base import, processing and retrieval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants