Skip to content

fix: bound the concurrency of the batch dispatch fan-out (#264) - #526

Merged
s2x merged 3 commits into
masterfrom
fix/264-bound-batch-dispatch-concurrency
Sep 9, 2026
Merged

fix: bound the concurrency of the batch dispatch fan-out (#264)#526
s2x merged 3 commits into
masterfrom
fix/264-bound-batch-dispatch-concurrency

Conversation

@s2x

@s2x s2x commented Sep 9, 2026

Copy link
Copy Markdown
Member

Description

Closes #264

Changes

  • Bound the batch dispatch fan-out of RawKvClient::batchGet() / batchPut() / batchDelete(): RawKvBatch now dispatches sub-batches in windows via the existing executeParallelCapped() executor instead of the unbounded executeParallel()
  • Wire RawKvBatch to the existing options['maxConcurrency'] option on RawKvClient::create() (default 16, same bound as fanned-out range operations)
  • Results order, cancellation, deadline and partial-failure semantics are unchanged
  • Add tests/Unit/RawKv/RawKvBatchConcurrencyCapTest.php asserting the peak in-flight count equals the window size (Grpc suite)
  • Add CHANGELOG entry and FAQ lessons

Changelog

Code Review

  • Pending subagent code review

@s2x s2x self-assigned this Sep 9, 2026
@s2x
s2x force-pushed the fix/264-bound-batch-dispatch-concurrency branch from 280b766 to eb2c257 Compare September 9, 2026 21:09
@s2x
s2x marked this pull request as ready for review September 9, 2026 21:09
@s2x
s2x merged commit 4003eda into master Sep 9, 2026
9 checks passed
@s2x
s2x deleted the fix/264-bound-batch-dispatch-concurrency branch September 9, 2026 21:12
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.

[GRPC-05] Bound the concurrency of the batch dispatch fan-out

1 participant