Compared with self-managed Redis databases, ApsaraDB for Redis, or other in-memory databases, Tair performs better in data security, O&M, availability, and kernel optimization.
Comparison between Tair and open source Redis
Item | Tair | Open source Redis |
Security protection | Precautionary measures:
Operational protection:
Post auditing:
| Precautionary measures:
Operational protection:
Post auditing:
|
Backup and restoration | DRAM-based instances support the data flashback feature that allows you to restore data to a specific point in time. For more information, see Use data flashback to restore data by point in time. | Supports only full data restoration. |
O&M |
|
|
Deployment and scaling | Supports elastic scaling and instant instance creation. | Requires the procurement, deployment, and maintenance of hardware, and manual node maintenance. |
High availability |
|
|
Kernel optimization |
|
|
Memory | Provides 100% memory availability. Memory overheads caused by disaster recovery, O&M management, scaling, and data persistence (such as write-time replication of forks) are borne by Alibaba Cloud and are not counted towards instance memory. For example, if you create a 64 GB ApsaraDB for Redis instance, the available memory capacity is 64 GB. | Reserves 25% to 40% of memory resources for disaster recovery, O&M management, and scaling. For example, if you purchase two 64 GB Elastic Compute Service (ECS) instances to create Redis master/replica instances, the available total memory capacity is typically less than 45 GB. |
Tair is fully compatible with open source Redis. You can connect to Tair in the same way as you connect to open source Redis. Therefore, you can use any client that is compatible with the Redis protocol to connect to a Tair instance. For more information, see FAQ and Use a client to connect to a Tair instance.
Comparison between Tair and ApsaraDB for Redis
Compared with ApsaraDB for Redis, Tair provides a variety of instance series based on different storage mediums such as DRAM, NVM, and enhanced SSDs (ESSDs) to meet your requirements for low-latency access, persistence, and reduced overall costs. Tair provides you with higher performance, more data modules, and more flexible storage methods. This helps you meet business requirements in different scenarios.
In the following table, ️️️️️️️️️✔️ indicates that this feature is supported, and ❌ indicates that this feature is not supported.
For more information about instance types, see Overview.
Category | Item | ApsaraDB for Redis Enhanced Edition (Tair) | ApsaraDB for Redis Community Edition | |||||
Instance that runs Redis 2.8, 4.0, or 5.0 | Instance that runs Redis 6.0 or 7.0 | Cost-effective instance that runs Redis 5.0 or 6.0 | ||||||
Baseline performance | Performance benchmark (based on Community Edition) | 300% | 90% | Read: 40% | Read: 60% | Same | 120% | 120% |
Write: 30% | Write: 40% | |||||||
Maximum number of connections to each data node | 30,000 | 10,000 | 10,000 | 40,000 | 10,000 | 10,000 | 10,000 | |
Service capability of a single key (QPS reference value] ① | 450,000 | 130,000 | 30,000 to 60,000 | 50,000 to 60,000 | 140,000 | 160,000 | 160,000 | |
Maximum bandwidth (Mbit/s) | 96 to 2,048 | 96 to 2,048 | 187.5 to 1,000 | 187.5 to 2,048 | 10 to 2,048 | 48 to 2,048 | 96 to 2,048 | |
Specifications | I/O and worker models | Multiple I/O threads + Single worker thread (Real Multi-I/O) ③ | Single I/O thread + Single worker thread | Multiple I/O threads + Multiple worker threads (Real Multi-I/O) | Multiple I/O threads + Multiple worker threads (Real Multi-I/O) | Single I/O thread + Single worker thread | Multiple I/O threads + Single worker thread | Multiple I/O threads + Single worker thread |
Cost per unit (based on Community Edition) | 117% | 70% | 15% to 20% | 15% | Same | Same | 51% to 67% | |
Data structures | Basic data structures and supported commands | Different types of instances support different commands. For more information, see Limits on commands supported by ApsaraDB for Redis Enhanced Edition (Tair). | For more information about the commands that are not supported, see Commands supported by ApsaraDB for Redis Community Edition. | |||||
✔️ | ️✔️️️ ️️️️️️(integration with specific Redis modules) | ❌ | ❌ | ❌ | ❌ | ❌ | ||
Data persistence | Master-replica replication consistency | Eventual consistency | Eventual consistency | Eventual consistency | Eventual consistency | Eventual consistency | Eventual consistency | Eventual consistency |
Persistent data consistency ④ | Write Back | Write Through | Write Through | Write Through | Write Back | Write Back | Write Back | |
Persistence level | Within seconds | Command-level | Command-level | Command-level | Within seconds | Within seconds | Within seconds | |
Security | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | |
✔️ | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ✔️ | ||
✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ||
Performance analysis | ✔️ | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ✔️ | |
✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ||
✔️ | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ✔️ | ||
Advanced features | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | |
✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ||
✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ||
✔️ | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |
The following points illustrate each numeric label:
①: The queries per second (QPS) reference value is measured by a command with a time complexity of O(1). The higher the time complexity, the lower the QPS reference value.
②: This metric is related to the distribution of cold and hot data that is accessed. A higher hit rate on memory indicates that the instance provides the performance closer to that of a Community Edition instance.
③: Different from the multi-threading model of Community Edition 6.0, the Real Multi-I/O model of DRAM-based instances provides fully accelerated I/O threads to support connections and linearly increases throughput.
④: Tair uses the following methods to store data:
Write Through: writes data directly to disks and returns a success response.
Write Back: writes data to the cache, returns a success response, and then writes the data to disks.