What Clients Can I Use for Redis Cluster in Different Programming Languages?
The following table compares Redis Cluster and Proxy Cluster in DCS.
Item |
Redis Cluster |
Proxy Cluster |
---|---|---|
Redis compatibility |
High |
Medium |
Client compatibility |
Medium (The cluster mode must be enabled on the client.) |
High |
Costs |
High |
Medium |
Latency |
Low |
Medium |
Read/write splitting |
Native support (client SDK configuration) |
Implemented by using proxies |
Performance |
High |
Medium |
Redis Cluster does not use proxies, and therefore delivers lower latency and higher performance. However, Redis Cluster instances are based on the open-source Redis Cluster protocol, so their client compatibility is poorer than that of Proxy Cluster instances.
The following table lists clients that can be used for Redis Cluster.
Language |
Client |
Reference Document |
---|---|---|
Java |
Jedis |
|
Java |
Lettuce |
https://github.com/lettuce-io/lettuce-core/wiki/Redis-Cluster |
PHP |
php redis |
|
Go |
Go Redis |
Redis Cluster: https://pkg.go.dev/github.com/go-redis/redis/v8#NewClusterClient Proxy Cluster, single-node, or master/standby: https://pkg.go.dev/github.com/go-redis/redis/v8#NewClient |
Python |
redis-py-cluster |
|
C |
hiredis-vip |
https://github.com/vipshop/hiredis-vip?_ga=2.64990636.268662337.1603553558-977760105.1588733325 |
C++ |
redis-plus-plus |
|
Node.js |
node-redis io-redis |
To view all Redis clients, see https://redis.io/clients.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.