Discover How Tendis Delivers High‑Performance, Redis‑Compatible KV Storage
Tendis, an open‑source distributed KV store developed by Tencent, combines full Redis protocol compatibility with RocksDB persistence, a decentralized gossip‑based cluster architecture, horizontal scalability to thousands of nodes, and cost‑effective hot‑cold data mixing, making it suitable for large‑scale, high‑throughput workloads.
Project Overview
Tendis is a distributed, high‑performance key‑value storage system developed by Tencent's CROS DBA team and the Tencent Cloud Database team. It implements the Redis protocol, supporting most native Redis commands and data structures while providing petabyte‑scale capacity, low cost, and strong persistence for warm‑cold data workloads.
Cluster Architecture
The cluster follows a decentralized design: each data node stores the complete routing table, so clients may connect to any node. The Redis MOVE protocol forwards requests to the appropriate master. Masters own exclusive slot ranges; slots can be migrated between masters for rebalancing. Nodes exchange state via a gossip protocol (similar to Redis Cluster) and optional hashtags can be used to influence data placement. Communication overhead is minimal.
Applicable Scenarios
Workloads that require Redis compatibility, large storage capacity, and high read/write throughput for warm‑cold data.
Cost‑sensitive applications that need strong durability guarantees.
Environments that must avoid Redis's fork and memory reservation limitations.
Key Features
Redis‑compatible protocol : Full support for major Redis data structures and commands.
Persistent storage : Uses RocksDB as the underlying engine; data are stored in a custom format that scales to petabytes.
Decentralized architecture : Gossip‑based node communication with optional hashtag‑based data distribution.
Horizontal scalability : Nodes can be added or removed; slot‑based migration is transparent to clients, supporting up to 1,000 nodes.
Automatic failover : Detects master failures and promotes a replica to master without service interruption.
Hot‑cold mixed storage : Combines native Redis for hot data with Tendis storage for cold data, reducing storage cost by up to 80% while preserving hot‑data latency.
Roadmap
Extend Redis compatibility (e.g., Lua script support).
Mitigate RocksDB latency spikes to improve overall performance.
Explore hardware‑accelerated solutions for higher throughput.
Develop heterogeneous data interoperability to lower migration costs.
Enhance PaaS capabilities and operational management tools.
Open‑Source Repository
GitHub: https://github.com/Tencent/Tendis
Domestic mirror: https://git.code.tencent.com/TencentOpenSource/Tendis
Illustration
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Java Architect Essentials
Committed to sharing quality articles and tutorials to help Java programmers progress from junior to mid-level to senior architect. We curate high-quality learning resources, interview questions, videos, and projects from across the internet to help you systematically improve your Java architecture skills. Follow and reply '1024' to get Java programming resources. Learn together, grow together.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
