Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@joeirimpan
Copy link
Member

Given N upstream nodes, failover mode allows us to start a consumer group on upstreamNode1 and replicate the given topics to downstreamNode. If upstreamNode1 goes down, kaf-relay automatically detects the disconnection, round-robin to the next identical kafka node and resume from where it left. This helps in deduplicating data from multiple streams without additional stores and helps us in creating an aggregated stream.

ref: Split init.go into consumer, producer

* fix consumer topics init
* minor refactors

feat: Save offsets and swap consumer to start from this offset

FIXME:
* Handle case where group2 is lagging behind by group1
* group1 down -> swap to group2 -> group2 down -> swap to group1 causing
UNKNOWN_MEMBER_ID

fix: Pause and reuse topic consumption

* Use list of kgo.Client instead of replacing the client

ref: keep kgo.Clients in array

ref: move consumer to consumerMgr

ref: cleanup

docs: Add docs

feat: Add retryBackoffFn, cleanup
@joeirimpan joeirimpan merged commit 5d250c5 into main Sep 21, 2023
@joeirimpan joeirimpan deleted the fallbacks branch December 13, 2023 08:22
joeirimpan added a commit that referenced this pull request Jan 15, 2024
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