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.
Redis Usage FAQs
- Can I Change the AZ for an Instance?
- Can I Change the VPC and Subnet for a DCS Redis Instance?
- Can I Customize or Change the Port for Accessing a DCS Instance?
- Can I Modify the Connection Addresses for Accessing a DCS Instance?
- Why Does It Take a Long Time to Start a Cluster DCS Instance?
- What Should I Do If an Error Occurs in redis_exporter?
- Does DCS for Redis Provide Backend Management Software?
- Can I Recover Deleted Data of a DCS Instance?
- How Do I Check Redis Memory Usage?
- Why Is the Capacity or Performance of a Shard of a Redis Cluster Instance Overloaded When That of the Instance Is Still Below the Bottleneck?
- Why Does an OOM Error Occur During a Redis Connection?
- What Clients Can I Use for Redis Cluster in Different Programming Languages?
- Why Do I Need to Configure Timeout for Redis Cluster?
- Why Am I Seeing a Timeout Error When Reading Data from Redis?
- Explaining and Using Hash Tags
- Why Does a Key Disappear in Redis?
- Will Cached Data Be Retained After an Instance Is Restarted?
- How Do I Know Whether an Instance Is Single-DB or Multi-DB?
- What Are the Constraints on Implementing Multi-DB on a Proxy Cluster Instance?
- How Do I Create a Multi-DB Proxy Cluster Instance?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more