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 az-affinity-strategy #23

Open
mcollina opened this issue Jan 13, 2025 · 0 comments
Open

Implement az-affinity-strategy #23

mcollina opened this issue Jan 13, 2025 · 0 comments
Labels
good first issue Good for newcomers

Comments

@mcollina
Copy link
Collaborator

By implementing AZ affinity routing in valkeyio, we can achieve lower latency and cost savings by routing requests to replicas in the same availability zone as the client. This is available in Valkey 8.

https://valkey.io/blog/az-affinity-strategy/

Some additional notes:

  • How does it know which replicas are the closest?

Generally speaking it is a free text. You can think of it as route based on replica name.
For example, the user can configure the name "This replica likes Shakshouka" and route the client only to replicas that has this text. The user has to configure the names at the server side and the client side.
For managed service the name may be auto configured by the server. But, as client maintainer you should not care about that in your implementation. (from this discussion)

@mcollina mcollina added the good first issue Good for newcomers label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant