Forking hiredis and hiredis-cluster #511
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
This is a good idea. Over the years many people have had to be redirected from
I vote yes and would have mentioned removal
Zero-copy also lets us fix the read buffer so we no longer repeatedly Another thing worth investigating is an When the project is forked I'm happy to help with all this stuff and keep answering user questions as they find their way there. |
Beta Was this translation helpful? Give feedback.
-
Hiredis (maintained by @michael-grunder) is used in valkey-benchmark, valkey-cli and valkey-sentinel and is vendored in the valkey repo.
Hiredis-cluster is a separate project (maintained by @bjosv and me), which adds cluster support as wrapper around hiredis.
It would be convenient to fork both of these together in a "monorepo", although separate within the repo, so it's still possible to vendor only the non-cluster part in valkey. It'd be the official C client for Valkey. (In the future we could add sentinel support too.)
When we for this with a new name, would it also be acceptable to do some breaking changes (apart from API rebranding)? Or is it best to avoid it and do them later? What I'm thinking about (maybe longer term roadmap) is:
char *
andsize_t len
for strings instead of sds. It'd possible to parse RESP in a zero-copy style. The returnedchar *
can point directly into the RESP data.The name is another important question. Michael suggested libvalkey. Other ideas are hivalkey and valkey-c. (I like libvalkey more.)
Beta Was this translation helpful? Give feedback.
All reactions