Skip to content

Conversation

@giuseppelillo
Copy link
Contributor

@giuseppelillo giuseppelillo commented Oct 20, 2025

Adds a cache for the Batch Coordinates. Cache entries are inserted by the broker after batches are committed to the Control Plane.
The cache is used by DelayedFetch to check if it can complete or not. This spares multiple network calls to the Control Plane, replacing them with checks performed on the in-memory cache.

On an high throughput use case, FindBatches queries performed by the brokers are reduced by 2/3, which causes Postgres CPU usage to drop by 50%.
Untitled Diagram-Copy of Page-1

@giuseppelillo giuseppelillo marked this pull request as draft October 20, 2025 14:57
@giuseppelillo giuseppelillo force-pushed the giuseppelillo/bc-cache-v2 branch 8 times, most recently from f389d00 to a818653 Compare October 23, 2025 07:43
@giuseppelillo giuseppelillo force-pushed the giuseppelillo/bc-cache-v2 branch 7 times, most recently from 99becc2 to b038ed4 Compare October 31, 2025 16:20
@giuseppelillo giuseppelillo changed the title Batch Coordinate cache PoC Batch Coordinate cachw Oct 31, 2025
@giuseppelillo giuseppelillo force-pushed the giuseppelillo/bc-cache-v2 branch from b038ed4 to a5e6e6c Compare October 31, 2025 16:21
@giuseppelillo giuseppelillo changed the title Batch Coordinate cachw Batch Coordinate cache Oct 31, 2025
@giuseppelillo giuseppelillo force-pushed the giuseppelillo/bc-cache-v2 branch 2 times, most recently from 113f200 to 059af4e Compare November 3, 2025 17:04
@giuseppelillo giuseppelillo force-pushed the giuseppelillo/bc-cache-v2 branch from 059af4e to 16d3d83 Compare November 3, 2025 17:29
@giuseppelillo giuseppelillo marked this pull request as ready for review November 3, 2025 17:29
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.

2 participants