Skip to content

docs(design): multi-producer WorkQueue for parallel generator fan-in (#1405) - #4224

Merged
oferchen merged 1 commit into
masterfrom
docs/multi-producer-workqueue-design-1405
May 17, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/multi-producer-workqueue-design-1405

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

Test plan

  • CI fmt+clippy passes (pure docs change; no Rust code touched).
  • Reviewer spot-checks file:line citations against crates/engine/src/concurrent_delta/work_queue/bounded.rs, multi_producer.rs, crates/engine/Cargo.toml, crates/transfer/src/delta_pipeline.rs, and the referenced audit/design docs.
  • Reviewer confirms the recommendation aligns with the docs(audits): WorkQueueSender multi-producer usage audit (#1383) #4173 audit's "keep feature gated" conclusion.

…1405)

Replaces the prior multi-root-focused note at the same path with a
focused #1405 design discussion for parallel generator fan-in.
Surveys the current SP / MP shape (feature-gated Clone at
work_queue/multi_producer.rs), the candidate use cases, the three
adjacent designs (Clone via #1569, Arc-wrap via #1610, explicit
producer-vector constructor), and the ordering, capacity, and bench
evidence that would have to land before flipping the default.

Recommends keeping WorkQueueSender Send + !Clone in default builds
and the multi-producer cargo feature opt-in. Documents the cost so
reviewers can reject naive MP refactors. Promotion to default-on is
gated on PR #4209 SP-vs-MP throughput parity, PR #4214 drain bench
showing no regression, and an actual fan-in caller materialising.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 17, 2026
@oferchen
oferchen merged commit 473069f into master May 17, 2026
8 checks passed
oferchen added a commit that referenced this pull request May 18, 2026
…1405) (#4224)

Replaces the prior multi-root-focused note at the same path with a
focused #1405 design discussion for parallel generator fan-in.
Surveys the current SP / MP shape (feature-gated Clone at
work_queue/multi_producer.rs), the candidate use cases, the three
adjacent designs (Clone via #1569, Arc-wrap via #1610, explicit
producer-vector constructor), and the ordering, capacity, and bench
evidence that would have to land before flipping the default.

Recommends keeping WorkQueueSender Send + !Clone in default builds
and the multi-producer cargo feature opt-in. Documents the cost so
reviewers can reject naive MP refactors. Promotion to default-on is
gated on PR #4209 SP-vs-MP throughput parity, PR #4214 drain bench
showing no regression, and an actual fan-in caller materialising.
oferchen added a commit that referenced this pull request May 18, 2026
…1405) (#4224)

Replaces the prior multi-root-focused note at the same path with a
focused #1405 design discussion for parallel generator fan-in.
Surveys the current SP / MP shape (feature-gated Clone at
work_queue/multi_producer.rs), the candidate use cases, the three
adjacent designs (Clone via #1569, Arc-wrap via #1610, explicit
producer-vector constructor), and the ordering, capacity, and bench
evidence that would have to land before flipping the default.

Recommends keeping WorkQueueSender Send + !Clone in default builds
and the multi-producer cargo feature opt-in. Documents the cost so
reviewers can reject naive MP refactors. Promotion to default-on is
gated on PR #4209 SP-vs-MP throughput parity, PR #4214 drain bench
showing no regression, and an actual fan-in caller materialising.
@oferchen
oferchen deleted the docs/multi-producer-workqueue-design-1405 branch May 19, 2026 19:27
oferchen added a commit that referenced this pull request Aug 24, 2026
…1405) (#4224)

Replaces the prior multi-root-focused note at the same path with a
focused #1405 design discussion for parallel generator fan-in.
Surveys the current SP / MP shape (feature-gated Clone at
work_queue/multi_producer.rs), the candidate use cases, the three
adjacent designs (Clone via #1569, Arc-wrap via #1610, explicit
producer-vector constructor), and the ordering, capacity, and bench
evidence that would have to land before flipping the default.

Recommends keeping WorkQueueSender Send + !Clone in default builds
and the multi-producer cargo feature opt-in. Documents the cost so
reviewers can reject naive MP refactors. Promotion to default-on is
gated on PR #4209 SP-vs-MP throughput parity, PR #4214 drain bench
showing no regression, and an actual fan-in caller materialising.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant