Skip to content

Use zookeeper watchers to keep brokers list in sync#36

Open
andrewjamesbrown wants to merge 4 commits intomasterfrom
ajb/watch_brokers
Open

Use zookeeper watchers to keep brokers list in sync#36
andrewjamesbrown wants to merge 4 commits intomasterfrom
ajb/watch_brokers

Conversation

@andrewjamesbrown
Copy link
Copy Markdown
Collaborator

@psycotica0-shopify and I put this together. We're moving to using zookeeper watches to keep the set of brokers in sync, instead of forcing the caller to reset metadata and keeping our own cache.

Related to #35 (comment)

Andrew Brown added 4 commits February 3, 2017 13:31
Since zookeeper watches are more efficient, we use them to manage the
broker list instead of forcing the caller to reset metadata to trigger
the cache to refresh.
Copy link
Copy Markdown
Owner

@wvanbergen wvanbergen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LATE response, but I like this approach. Is this still something you want to get landed in this gem.

Copy link
Copy Markdown
Owner

@wvanbergen wvanbergen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to use a similar approach for topics and consumergroups? Maybe that will result in keeping to much useless data in memory.

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