valkey-io / valkey-glide

An open source Valkey client library that supports Valkey and Redis open source 6.2, 7.0 and 7.2. Valkey GLIDE is designed for reliability, optimized performance, and high-availability, for Valkey and Redis OSS based applications. GLIDE is a multi language client library, written in Rust with programming language bindings, such as Java and Python
Apache License 2.0
228 stars 51 forks source link

Get routing information at runtime #299

Open shachlanAmazon opened 1 year ago

shachlanAmazon commented 1 year ago

read the command JSON for each command, and check the routing policy in order to determine how commands should be routed, and what are their key indices.

asafpamzn commented 10 months ago

TODO ask Shachar why it is different then what we currently have

shachlanAmazon commented 10 months ago

right now we get routing info at compile time, so if you use an older version of the client against a newer server, you won't have the newer routing information. If you'll query the server at connection time for routing info, you'll always get up to date routing info.