Skip to content

feat: gossip improvements#5520

Open
sbackend123 wants to merge 10 commits into
masterfrom
feat/gossip-improvements
Open

feat: gossip improvements#5520
sbackend123 wants to merge 10 commits into
masterfrom
feat/gossip-improvements

Conversation

@sbackend123

@sbackend123 sbackend123 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Adds write coalescing for hive outbound gossip. Single-peer BroadcastPeers calls are buffered per addressee and flushed as one batched message after ~1s (configurable via GossipCoalesceInterval), or immediately when the buffer reaches maxBatchSize (30). Calls with 2+ peers are sent without coalescing

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

#5490

Screenshots (if appropriate):

AI Disclosure

  • This PR contains code that has been generated by an LLM.
  • I have reviewed the AI generated code thoroughly.
  • I possess the technical expertise to responsibly review the code generated in this PR.

sbackend123 and others added 3 commits June 29, 2026 11:48
Discard buffered gossip on shutdown instead of flushing, restore quit
checks in broadcastNow, document the async BroadcastPeers contract, use
fixed 100ms jitter, and clean up tests and metrics.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sbackend123 sbackend123 marked this pull request as ready for review June 29, 2026 12:43
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.

1 participant