TencentDB for Redis® is a cache database provided by Tencent CloudIt is compatible with the Redis and Memcached protocols, and supports multiple engine versions, including Redis® 2.8, 4.0, 5.0, 6.2, 7.0, Valkey 8.0, and Memcached 1.6. It features high availability, reliability, and elasticity.
Storage Engine
TencentDB for Redis® supports the following three storage engines. For more information, see Storage Engines. |
Redis Edition | 4.0,5.0,6.2,7.0 | Fully compatible with the Redis protocol, it provides a mature and stable caching solution. |
Valkey Edition | 8.0 | Compatible with the Redis protocol, as an open-source branch of Redis, it provides performance optimizations. |
Memcached Edition | 1.6 | Compatible with the Memcached protocol, designed specifically for caching scenarios. |
Architecture Version
It provides both Standard Edition and Cluster Edition architectures to meet business needs of different scales. For more information, see Product Series. |
Standard architecture | Master-Slave Architecture: Using a two-node master-slave architecture, with the primary node and secondary node deployed on different physical servers. Replica Configuration: Supports 1 to 5 replicas (secondary nodes). Proxy Component: Built-in Proxy component responsible for request routing and load balancing. Capacity Specifications: A single instance supports 0.25GB to 64GB. Cluster Mode: Automatic data synchronization between primary and secondary nodes. | General caching services requiring data reliability and availability. |
Cluster Architecture | Distributed Architecture: Built on the community edition Redis Cluster. Shard Scaling: Supports horizontal scaling from 1 to 128 shards. Replica Scaling: Supports 1 to 5 replica. Proxy Component: Built-in Proxy component responsible for request routing, load balancing, and cross-shard command processing. Shard Specifications: Provides multiple specifications ranging from 1GB to 64GB. Cluster Mode: Automatic sharding, data balancing, and data migration. | Distributed caching services requiring large-capacity storage and high-concurrency performance. |
Key Strengths
TencentDB for Redis® offers core capabilities such as high availability, elastic scaling, and smart Ops, delivering stable and reliable caching services for your business.
High Availability
Based on Tencent Cloud's self-developed high-availability system, it provides cross-device and cross-AZ disaster recovery capabilities, enabling automatic switch within seconds during failures to ensure stable business operations.
Standard architecture: A multi-replica mode with one primary node and multiple replicas (such as 1 primary node and 5 replicas) is supported, providing auto-failover to effectively prevent a single point of failure and ensure business continuity.
Cluster architecture: Each shard independently implements primary-secondary replication, with automatic isolation and failover for shard-level failures, ensuring other shards remain unaffected.
Elastic Scale-Out
Both horizontal and vertical elastic scaling are supported, with a smooth scaling process that ensures continuous business operations and helps you easily handle business traffic peaks and sustained data growth.
Multi-dimensional scale-out: It supports horizontal scale-out of shards (for performance improvement) and vertical scale-out of replicas (for read capability enhancement), with built-in automatic read-write separation.
Automated Ops: During shard scaling, data automatically migrates between nodes, significantly reducing the complexity and risks of Ops.
Deep Intelligent Monitoring
It provides multi-dimensional monitoring metrics from the Proxy layer to the engine layer, along with built-in diagnostic analysis tools, helping you move from reactive troubleshooting to proactive performance optimization, making it easier to identify and resolve performance bottlenecks.
Multi-dimensional monitoring: Through multi-channel collection at the Proxy and engine layers, it provides comprehensive monitoring metrics, including performance, latency, network, capacity, and hit rate.
Visual insights: It presents complex performance data through intuitive charts, enabling you to easily grasp the health status and operational trends of instances.
Autonomous diagnostic analysis: It features built-in advanced capabilities such as hot Key collection, big Key analysis, and latency analysis to automatically identify common performance issues.
Key Concepts
The following are the core terms of TencentDB for Redis®, helping you quickly understand the product architecture and features.
|
Instance. | A database environment that runs independently in Tencent Cloud, where an instance can contain multiple user-created databases. |
Replica | A replica is a data backup node for the primary node, used for data redundancy and failover. |
Shard | A shard is the smallest data storage unit in a cluster, consisting of a set of primary/secondary nodes, used for data distribution and horizontal scaling. |
Node | A node is the basic operational unit in a Redis instance, categorized as primary node (Master) and replica node (Replica). |
Proxy | The proxy layer is responsible for request forwarding, routing, and load balancing. |
Region | The geographic location where the Redis instance is deployed on Tencent Cloud. |
Availability Zone | A physical area within the same region with independent power and network. |
VPC | A user-defined virtual network space that is logically isolated from other resources. |
Security Group | A virtual firewall for secure access control to Redis instances, specifying IP address, protocol, and port rules. |
Console | Tencent Cloud provides a visual management interface that enables users to perform management tasks, including instance creation, configuration, monitoring, and operations, via a web page. |
Horizontal scaling (shard scaling) | Increasing the number of shards enhances the overall performance and capacity of the instance. |
Vertical scaling (replica scaling) | By increasing the number of replicas to enhance the read capacity of the instance. |
Read-write separation | In scenarios with more reads than writes, the primary node handles write requests while replica nodes offload read requests. |
Project | Tencent Cloud provides a resource management approach to group cloud products by business or team, facilitating unified management and permission control. |
Start Now
1. Configure a TencentDB for Redis® (TencentDB for Redis®) instance and set the following key parameters according to your business requirements:
Select a region and an AZ.
Select a storage engine (Redis/Valkey/Memcached).
Select the architecture edition (Standard Architecture/Cluster Architecture).
Set the memory capacity and the number of shards.
Configure the network and security group.
2. Obtain the instance connection address, connect to the database instance via a client, and perform basic read and write operations. For specific operations, see Connecting to an Instance.