Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement cluster ID space sharding #10

Open
smira opened this issue Sep 24, 2021 · 0 comments
Open

implement cluster ID space sharding #10

smira opened this issue Sep 24, 2021 · 0 comments

Comments

@smira
Copy link
Member

smira commented Sep 24, 2021

Redis stores bucket -> instance mapping

Every instance has an endpoint.

On Hello request, services hashes clusterID, takes n bytes, looks up bucket, and figures out instance; if instance is different,
service responds with redirect.

Other requests should also validate that clusterID is coming from their bucket

Redis contents might change over time, so instances should watch the mapping.

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

No branches or pull requests

1 participant