This topic discusses important considerations for using client programs (SDKs) to connect to Tair and Redis instances. It also provides usage recommendations and describes the technical support available for official Tair clients.
In this topic, clients refer to third-party SDKs that are used to connect to Tair and Redis instances over the Redis protocol, as shown in the following figure.
Important notes
-
The clients that are used to connect to Tair and Redis instances are provided by third parties. You can select a client based on your needs. Alibaba Cloud is not liable for the compliance of the client that you select.
-
When you use a third-party client to implement application development, maintenance, and failover, you are responsible for potential security risks.
Alibaba Cloud is not liable for the stability, service limits, or security compliance of these clients. Additionally, the Service Level Agreement (SLA) of Alibaba Cloud does not apply to these clients. We recommend that you follow the updates of these clients on their official websites or software-hosting platforms to cope with potential issues and risks in a timely manner.
-
For information about the commands that are supported for Tair and Redis, see Overview.
Recommendations for using client programs
For Tair, we recommend using a stable SDK that offers service guarantees. For open-source Redis, use an SDK recommended in this topic or by the Redis community.
Avoid using niche SDKs or less common versions unless necessary. If your use case requires a specific client, choose a stable version with an active community and few known defects. You assume all risks associated with your choice of SDK.
If you use an open-source SDK from a commercial vendor, we recommend that enterprise users purchase a technical support service from them. This support is crucial given the complexity of enterprise environments and the possibility of the SDK becoming closed-source. Alibaba Cloud does not provide support for third-party commercial products.
When you use a client program, we recommend that you:
Familiarize yourself with known issues. For some common problems, see Common errors.
Understand the client's connection management and thread safety behavior to prevent business impact from incorrect usage or inherent client issues.
Actively report issues to the client's community. Alibaba Cloud encourages collaboration to help improve these client libraries.
The following table lists the recommended client programs for popular programming languages. For connection instructions, see Client program connection tutorials.
Table 1. Recommended clients by language
Language | Redis client | Recommended version | Tair client | Description |
Java | Jedis (Recommended) |
| TairJedis (Recommended) | An enhanced Tair client developed based on Jedis. Note Alibaba Cloud does not provide free technical support for this client. However, we generally respond to requests and offer support on a best-effort basis. |
Jedis | Developed by the creators of Redis. Alibaba Cloud actively engages with the community to fix bugs and recommend features. | |||
Lettuce | 6.3.0.RELEASE and later. You must enable the TCP_USER_TIMEOUT parameter. For more information, see the Lettuce upgrade announcement. | Lettuce | Alibaba Cloud can advocate for bug fixes and improvements, but the community response may be slow. | |
Redisson | None | Redisson | A third-party commercial product. You are responsible for obtaining technical support service, which may require purchasing it from the vendor. | |
C/C++ | Hiredis (Recommended) | 1.2.0 and later | Hiredis (Recommended) | Developed by the creators of Redis. |
C# | StackExchange.Redis (Recommended) | 2.7.20 and later. For more information, see the StackExchange.Redis upgrade announcement. | AlibabaCloud.TairSDK (Recommended) | An enhanced Tair client developed based on StackExchange.Redis. Note Alibaba Cloud does not provide free technical support for this client. However, we generally respond to requests and offer support on a best-effort basis. |
StackExchange.Redis | A popular, thread-safe, open-source client program with an active community. | |||
ServiceStack.Redis | None | ServiceStack.Redis | A third-party commercial product. You are responsible for obtaining technical support service, which may require purchasing it from the vendor. | |
CSRedis | None | CSRedis | Not recommended, as this client is no longer maintained by its original developer. | |
Python | redis-py (Recommended) |
| Tair-py (Recommended) | Tair enhanced client, a Tair client developed based on Note Alibaba Cloud does not provide free technical support for this client. However, we generally respond to requests and offer support on a best-effort basis. |
redis-py | Developed by the creators of Redis. | |||
Go | go-redis (Recommended) |
| Tair-go (Recommended) | An enhanced Tair client developed based on go-redis. Note Alibaba Cloud does not provide free technical support for this client. However, we generally respond to requests and offer support on a best-effort basis. |
go-redis | A well-designed, open-source client program with an active community. |
Technical support for Tair clients
Tair clients are published to GitHub and related package managers such as NuGet. For more information, see TairJedis, AlibabaCloud.TairSDK, Tair-go, and Tair-py.
Tair provides the following additional technical support for Tair clients.
The SLA of Alibaba Cloud does not apply to these technical support services.
-
Maintain the stability of the key features of Tair clients.
-
Fix security vulnerabilities.
-
Publish best practices and sample code on a regular basis.
-
Communicate requirements to the corresponding community and engage users in client optimization.
Table 2. Time frames of technical support services for Tair clients
|
Category |
Description |
Time frame |
|
Stability issues of key features |
|
Three business days |
|
Regular fixes |
|
Two weeks |
|
Requirements and feature updates |
|
|