4 ms·
okay, tell me a python library comes with consistent hashing? (for the record = HASH(key) MOD N is not 'consistent hashing'.) redis-router is just a library t
by emre-yilmaz 13y ago
okay, tell me a python library comes with consistent hashing?
(for the record = HASH(key) MOD N is not 'consistent hashing'.)
redis-router is just a library that wraps redis-py with consistent-hashing. nothing more.
I use it in production heavily since it solves the client-side sharding problem for me. When I wrote this, there was no trustable client library comes with consistent-hashing.
I don't know what do you want to see actually. "saving the world" is a todo though. wait for the new releases. you might like it. :)
- kijin 13y ago> okay, tell me a python library comes with consistent hashing? Nydus uses the same Ketama algorithm that you use, but I suppose it might not have had that feature when you started to work on Redis Router. Also, pretty much every up-to-date client library in nearly every popular language, such as PHP, Ruby, C#, and Java. I'm not complaining about the fact that you created a neat Python library for Redis. My complaint is about the standalone server feature. I don't see why it's needed because nearly every popular language has native libraries that implement consistent hashing (not HASH MOD N), often using the exact same algorithm you're using. So I went looking for bells and whistles that might justify the standalone server, and unfortunately I found none.