Skip to content

feat: cluster consumer coordinator routing with metadata-based leader discovery#12

Merged
downfa11 merged 3 commits into
cursus-io:mainfrom
downfa11:feat/cluster-consumer-coordinator
May 5, 2026
Merged

feat: cluster consumer coordinator routing with metadata-based leader discovery#12
downfa11 merged 3 commits into
cursus-io:mainfrom
downfa11:feat/cluster-consumer-coordinator

Conversation

@downfa11

@downfa11 downfa11 commented May 5, 2026

Copy link
Copy Markdown
Member

Summary

  • FindCoordinator-based cluster consumer routing: Consumer discovers the coordinator broker via FIND_COORDINATOR and routes group commands (JOIN_GROUP, HEARTBEAT, COMMIT, etc.) to the coordinator while routing data commands (CONSUME, STREAM) to partition leaders
  • Metadata-based partition leader routing: Both Producer and Consumer query partition leaders via METADATA command and connect directly to leader brokers. Consumer periodically refreshes leader info at metadataRefreshIntervalMs (default 30s)
  • EventStore client: New CursusEventStore client supporting Event Sourcing pattern — append (with optimistic version conflict detection), readStream, saveSnapshot, readSnapshot, streamVersion

@downfa11 downfa11 force-pushed the feat/cluster-consumer-coordinator branch from d4fa676 to 1ac39aa Compare May 5, 2026 08:42
downfa11 added 3 commits May 5, 2026 17:49
…ting and mermaid docs

Signed-off-by: downfa11 <downfa11@naver.com>
…ersion conflict detection

Signed-off-by: downfa11 <downfa11@naver.com>
…r support

Signed-off-by: downfa11 <downfa11@naver.com>
@downfa11 downfa11 force-pushed the feat/cluster-consumer-coordinator branch from 1ac39aa to f823bc8 Compare May 5, 2026 08:49
@downfa11 downfa11 merged commit ab49501 into cursus-io:main May 5, 2026
5 checks passed
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