Tagged articles
77 articles
Page 1 of 1
Code Wrench
Code Wrench
Mar 1, 2026 · Backend Development

Building a High‑Performance Go Distributed Cache: GoMemcache from Scratch

This article walks through designing and implementing GoMemcache, a lightweight Go‑based distributed cache, covering use‑case selection, concurrency lock optimization, consistent hashing, production‑grade code, and practical deployment best practices for ultra‑low latency services.

Gobackend-developmentconcurrency
0 likes · 12 min read
Building a High‑Performance Go Distributed Cache: GoMemcache from Scratch
IT Services Circle
IT Services Circle
Jan 20, 2026 · Backend Development

How to Achieve Near‑Perfect Cache Consistency: Double‑Check, Queues, and Advanced Strategies

This article walks through the fundamentals and advanced techniques for guaranteeing cache consistency, covering the Double‑Check pattern, root causes of inconsistency, interview‑ready questions, practical solutions like message queues, optimistic locking, multi‑level caching, and cutting‑edge schemes such as consistent hashing with singleflight.

Cache ConsistencyMulti-level Cacheconsistent hashing
0 likes · 20 min read
How to Achieve Near‑Perfect Cache Consistency: Double‑Check, Queues, and Advanced Strategies
Tech Freedom Circle
Tech Freedom Circle
Oct 23, 2025 · Databases

Why Consistent Hashing Fails: Why Redis, HBase, TiDB and Ceph Have Dropped It

The article examines the fundamental limitations of consistent hashing—its inability to preserve data locality, support range queries, and handle topology awareness—explaining why major storage systems such as Redis Cluster, TiDB, Ceph, and HBase have adopted alternative sharding strategies like hash slots, range partitioning, and CRUSH.

CRUSHCephHBase
0 likes · 45 min read
Why Consistent Hashing Fails: Why Redis, HBase, TiDB and Ceph Have Dropped It
Su San Talks Tech
Su San Talks Tech
Sep 16, 2025 · Backend Development

Mastering Message Order in Distributed Queues: From Basics to Advanced Strategies

This article explores the fundamentals of message ordering in distributed message queues, explains why ordering is determined by broker arrival, compares global and partial ordering, and presents practical solutions—from single-partition designs to multi-partition hashing, handling data skew, and safe expansion—plus interview tips.

Distributed SystemsKafkaPartitioning
0 likes · 24 min read
Mastering Message Order in Distributed Queues: From Basics to Advanced Strategies
Tech Freedom Circle
Tech Freedom Circle
Jul 14, 2025 · Databases

How to Estimate Sharding Capacity: Calculating Required Databases and Tables for an Alibaba Interview

The article walks through why sharding is needed, outlines IO and CPU bottlenecks, presents two design principles, shows how to estimate capacity from existing data and growth trends, compares range, modulo, consistent‑hash and Snowflake sharding schemes, and details migration strategies for expanding nodes without downtime.

Data Migrationcapacity planningconsistent hashing
0 likes · 22 min read
How to Estimate Sharding Capacity: Calculating Required Databases and Tables for an Alibaba Interview
dbaplus Community
dbaplus Community
Mar 4, 2025 · Databases

Why Does Redis Prefer Hash Slots Over Consistent Hashing?

Redis Cluster distributes data using 16,384 hash slots calculated via CRC16, a design that offers flexible slot allocation, simpler data migration, and better performance compared to traditional consistent hashing, and this article explains the slot mechanism, node scaling, client routing, and the reasons behind the 16K slot choice.

CRC16Hash Slotscluster scaling
0 likes · 9 min read
Why Does Redis Prefer Hash Slots Over Consistent Hashing?
Radish, Keep Going!
Radish, Keep Going!
Feb 16, 2025 · Fundamentals

Master Consistent Hashing: Principles, Virtual Nodes, and Go Implementation

Consistent hashing, a cornerstone of distributed systems, balances load, enhances scalability, and minimizes data migration; this article explains its fundamentals, the drawbacks of basic implementations, the role of virtual nodes, and provides a complete Go-language example with code for adding, removing, and locating nodes.

Distributed Systemsconsistent hashingload balancing
0 likes · 11 min read
Master Consistent Hashing: Principles, Virtual Nodes, and Go Implementation
Lobster Programming
Lobster Programming
Jun 11, 2024 · Fundamentals

Why Consistent Hashing Matters: Solving Cache Distribution and Scaling Issues

Consistent hashing replaces simple modulo‑based distribution to efficiently locate cached data across changing numbers of servers, using a hash ring and virtual nodes to ensure balanced load, minimize data movement, and improve reliability in distributed caching, load balancing, and database sharding scenarios.

consistent hashingdistributed cachingsharding
0 likes · 6 min read
Why Consistent Hashing Matters: Solving Cache Distribution and Scaling Issues
JD Cloud Developers
JD Cloud Developers
Apr 4, 2023 · Databases

How to Scale B‑Token Systems with Horizontal Sharding and Consistent Hashing

This article examines the challenges of growing B‑token data volumes, including table size limits and data skew, and proposes a solution using horizontal sharding with a consistent‑hash ring, dynamic table allocation, water‑level thresholds, periodic archiving, and monitoring to support future growth without costly migrations.

Data Skewconsistent hashingscalable architecture
0 likes · 13 min read
How to Scale B‑Token Systems with Horizontal Sharding and Consistent Hashing
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 1, 2022 · Databases

Understanding Redis Cluster Architecture: High Availability, Data Partitioning, and Proxy Strategies

This article explains the fundamental concepts of Redis cluster architecture, covering high‑availability with Sentinel, data partitioning methods, proxy‑based sharding techniques, the mechanics of Redis Cluster without a central node, and practical considerations for multi‑key operations in a distributed environment.

ClusterData PartitioningProxy
0 likes · 9 min read
Understanding Redis Cluster Architecture: High Availability, Data Partitioning, and Proxy Strategies
21CTO
21CTO
Nov 30, 2022 · Big Data

Mastering Data Sharding: Hash, Range, and Consistent Hash Techniques

This article explains core data sharding concepts and models—including hash‑based, range‑based, and consistent hashing—detailing their mappings, routing strategies, scalability considerations, and practical implementation examples for handling massive datasets in distributed systems.

Big DataHashingconsistent hashing
0 likes · 11 min read
Mastering Data Sharding: Hash, Range, and Consistent Hash Techniques
21CTO
21CTO
Nov 22, 2022 · Fundamentals

Key Distributed System Techniques: Bloom Filter, Consistent Hashing, Quorum

This article explains fundamental distributed‑system mechanisms—including Bloom filters for space‑efficient membership tests, consistent hashing for scalable data placement, quorum requirements for operation safety, leader‑follower coordination, heartbeats, fencing, write‑ahead logging, log segmentation, high‑water marks, leases, gossip protocols, failure detection, split‑brain resolution, checksums, CAP and PACELC theorems, hinted handoff, read repair, and Merkle trees—providing a comprehensive overview for engineers.

ConsistencyDistributed SystemsScalability
0 likes · 13 min read
Key Distributed System Techniques: Bloom Filter, Consistent Hashing, Quorum
ITPUB
ITPUB
Nov 21, 2022 · Fundamentals

CAP, BASE, Consistent Hashing, Gossip, Raft & Distributed Transactions Explained

This article introduces core distributed system concepts—including the CAP theorem, BASE model, consistent hashing, gossip protocol, Raft consensus algorithm, and common distributed transaction patterns like 2PC, 3PC, and TCC—explaining their definitions, trade‑offs, practical use cases, and implementation details.

CAP theoremRaft algorithmconsistent hashing
0 likes · 20 min read
CAP, BASE, Consistent Hashing, Gossip, Raft & Distributed Transactions Explained
Architect's Guide
Architect's Guide
Oct 10, 2022 · Operations

Common Load Balancing Algorithms and Their Java Implementations

This article introduces fundamental load balancing concepts and examines several static and dynamic algorithms—including round‑robin, weighted, smooth weighted round‑robin, consistent hashing, least‑active, and optimal‑response—providing Java code examples and discussing their advantages, disadvantages, and suitable use cases.

Algorithmsconsistent hashingjava
0 likes · 33 min read
Common Load Balancing Algorithms and Their Java Implementations
Architect's Guide
Architect's Guide
Sep 23, 2022 · Fundamentals

Key Distributed System Design Patterns and Concepts

This article introduces essential distributed system design patterns such as Bloom filters, consistent hashing, quorum, leader‑follower architecture, heartbeat, fencing, write‑ahead logs, segmented logs, high‑water marks, leases, gossip protocol, Phi failure detection, split‑brain handling, checksums, CAP and PACELC theorems, hinted handoff, read repair, and Merkle trees, explaining their purpose and operation.

CAP theoremMerkle Treebloom-filter
0 likes · 13 min read
Key Distributed System Design Patterns and Concepts
IT Architects Alliance
IT Architects Alliance
Sep 2, 2022 · Fundamentals

Key Distributed System Concepts: Bloom Filter, Consistent Hashing, Quorum, Leader/Follower, and More

This article introduces essential distributed‑system concepts—including Bloom filters, consistent hashing, quorum, leader/follower roles, heartbeats, fencing, WAL, segment logs, high‑water marks, leases, gossip protocol, Phi failure detection, CAP and PACELC theorems, hinted handoff, read repair, and Merkle trees—explaining their purpose and how they are applied in systems such as BigTable, Cassandra, Dynamo, and Kafka.

CAP theoremDistributed SystemsMerkle Tree
0 likes · 12 min read
Key Distributed System Concepts: Bloom Filter, Consistent Hashing, Quorum, Leader/Follower, and More
IT Architects Alliance
IT Architects Alliance
Aug 21, 2022 · Backend Development

Consistent Hashing Algorithm: Principles, Java Implementation, and Optimizations for Distributed Cache Load Balancing

This article explains the fundamentals of consistent hashing, its application in load‑balancing distributed caches, analyzes common issues such as data skew and cache avalanche, introduces virtual nodes for uniform distribution, provides Java code examples, and compares it with Redis's HashSlot approach.

algorithmconsistent hashingdistributed cache
0 likes · 20 min read
Consistent Hashing Algorithm: Principles, Java Implementation, and Optimizations for Distributed Cache Load Balancing
Java High-Performance Architecture
Java High-Performance Architecture
Jul 20, 2022 · Backend Development

Mastering Load Balancing: From Round Robin to Consistent Hashing in Java

This article explains common load‑balancing strategies—including round‑robin, random, weighted, smooth weighted round‑robin, consistent hashing, least‑active, and fastest‑response algorithms—provides Java implementations with code samples, discusses their advantages, disadvantages, and suitable scenarios, and offers practical guidance for choosing the right method in distributed systems.

Distributed SystemsRound Robinconsistent hashing
0 likes · 35 min read
Mastering Load Balancing: From Round Robin to Consistent Hashing in Java
IT Architects Alliance
IT Architects Alliance
Jul 14, 2022 · Operations

Common Load Balancing Algorithms and Their Java Implementations

This article reviews common load balancing strategies—including round-robin, random, weighted, smooth weighted round-robin, consistent hashing, least-active and optimal-response algorithms—explains their advantages and drawbacks, and provides complete Java code examples for each method.

AlgorithmsDistributed SystemsWeighted Round Robin
0 likes · 33 min read
Common Load Balancing Algorithms and Their Java Implementations
Architecture Digest
Architecture Digest
Jul 14, 2022 · Fundamentals

Key Distributed System Concepts: Bloom Filter, Consistent Hashing, Quorum, Leader/Follower, and More

This article explains essential distributed‑system concepts such as Bloom filters, consistent hashing, quorum, leader/follower roles, heartbeats, fencing, write‑ahead logs, segmented logs, high‑water marks, leases, gossip protocols, Phi accrual failure detection, split‑brain handling, checksums, the CAP and PACELC theorems, hinted handoff, read repair, and Merkle trees, illustrating each with practical examples and diagrams.

CAP theoremMerkle Treebloom-filter
0 likes · 12 min read
Key Distributed System Concepts: Bloom Filter, Consistent Hashing, Quorum, Leader/Follower, and More
Architect
Architect
Jul 12, 2022 · Backend Development

Load Balancing Algorithms: Round Robin, Random, Weighted, Smooth Weighted, Consistent Hashing, Least Active and Optimal Response

This article explains common load‑balancing strategies—including basic round‑robin, random, weighted and smooth weighted algorithms, as well as consistent hashing, least‑active and optimal‑response methods—provides Java implementations for each, discusses their advantages, disadvantages, and suitable scenarios, and concludes with practical recommendations.

AlgorithmsDistributed Systemsconsistent hashing
0 likes · 34 min read
Load Balancing Algorithms: Round Robin, Random, Weighted, Smooth Weighted, Consistent Hashing, Least Active and Optimal Response
Sanyou's Java Diary
Sanyou's Java Diary
Jun 30, 2022 · Databases

Mastering Redis High Availability: Sharding, Consistent Hashing, and Sentinel Explained

This article explains Redis high‑availability strategies, covering basic hash sharding, the advantages of consistent hashing, client‑side versus proxy‑based partitioning, master‑slave replication, and the Sentinel failover mechanism, with diagrams illustrating node addition, removal, and failover decision processes.

consistent hashingdatabasehigh availability
0 likes · 10 min read
Mastering Redis High Availability: Sharding, Consistent Hashing, and Sentinel Explained
Programmer DD
Programmer DD
Jun 14, 2022 · Cloud Native

Build a Distributed WebSocket Cluster with Spring Cloud & Consistent Hashing

This article explores practical solutions for implementing a distributed WebSocket cluster in a Spring Cloud environment, detailing the challenges of session sharing, comparing Netty and Spring WebSocket approaches, and presenting two strategies—session broadcasting and consistent‑hashing—along with gateway configuration, load‑balancing, and code examples.

Spring CloudWebSocketconsistent hashing
0 likes · 21 min read
Build a Distributed WebSocket Cluster with Spring Cloud & Consistent Hashing
Code Ape Tech Column
Code Ape Tech Column
Apr 10, 2022 · Backend Development

Implementing Distributed WebSocket Clusters with Spring Cloud, Consistent Hashing, and Gateway

This article explores practical approaches for building a distributed WebSocket cluster in a Spring Cloud environment, covering session handling, Netty versus Spring WebSocket implementations, session broadcasting, consistent‑hash routing, gateway configuration, Ribbon limitations, and provides code examples for each solution.

BackendDistributed SystemsSpring Cloud
0 likes · 17 min read
Implementing Distributed WebSocket Clusters with Spring Cloud, Consistent Hashing, and Gateway
IT Services Circle
IT Services Circle
Mar 25, 2022 · Fundamentals

Consistent Hashing Algorithm: Principles, Advantages, and Applications

Consistent hashing maps both servers and keys onto a virtual hash ring, allowing keys to be assigned to the nearest clockwise server, which minimizes data movement during node addition or removal, improves load distribution with virtual nodes, and is widely used in distributed caching and load balancing systems.

CacheDistributed Systemsconsistent hashing
0 likes · 11 min read
Consistent Hashing Algorithm: Principles, Advantages, and Applications
Tencent Cloud Developer
Tencent Cloud Developer
Mar 14, 2022 · Backend Development

Consistent Hashing Algorithm: Theory, Go Implementation, and Load-Balanced Extension

The article explains consistent hashing—using a circular 2^32 hash ring with virtual nodes to evenly distribute keys across dynamic cache servers—provides a complete Go implementation including host registration, key lookup, and a bounded‑load extension that tracks server load, demonstrates a proxy‑cache setup, and discusses practical testing and production‑grade enhancements.

Distributed SystemsGolangalgorithm
0 likes · 27 min read
Consistent Hashing Algorithm: Theory, Go Implementation, and Load-Balanced Extension
HelloTech
HelloTech
Feb 21, 2022 · Databases

Database Sharding: Partitioning Strategies, Consistent Hashing, SQL Rewrite, and Merge Engine

Database sharding improves performance by partitioning tables vertically or horizontally and routing rows with consistent hashing, while ShardingJDBC rewrites SQL for physical tables, adds missing columns, corrects pagination, splits batch inserts, and merges results using sorting, grouping, aggregation, and pagination engines.

MERGE engineSQL RewriteVertical Partitioning
0 likes · 15 min read
Database Sharding: Partitioning Strategies, Consistent Hashing, SQL Rewrite, and Merge Engine
Su San Talks Tech
Su San Talks Tech
Feb 20, 2022 · Backend Development

How Consistent Hashing Solves Cache Scaling and Reduces Data Skew

This article explains the principles of consistent hashing, compares it with simple modulo hashing, and shows how the hash ring, virtual nodes, and key mapping improve load balancing, minimize data loss during node changes, and prevent cache avalanche in distributed caching systems.

consistent hashingdistributed cachingvirtual nodes
0 likes · 12 min read
How Consistent Hashing Solves Cache Scaling and Reduces Data Skew
Baidu Geek Talk
Baidu Geek Talk
Nov 15, 2021 · Backend Development

Baidu Short Video Push System: Architecture Design and Billion-Level Data Optimization Practice

Baidu’s Short Video Push System is a distributed platform serving hundreds of millions of users across multiple apps, delivering personalized, real‑time notifications via a modular architecture that includes material and user centers, recall, preprocessing, and delivery services, while optimizations such as activity‑based scheduling, bitmap‑based user segmentation, consistent‑hash frequency control, and protobuf compression boost click‑through rates, scalability, and resource efficiency.

BaiduBitmap IndexProtobuf
0 likes · 15 min read
Baidu Short Video Push System: Architecture Design and Billion-Level Data Optimization Practice
Programmer DD
Programmer DD
Nov 7, 2021 · Backend Development

How to Build a Distributed WebSocket Cluster with Spring Cloud and Consistent Hashing

This article walks through the challenges of multi‑user WebSocket communication in a clustered environment and presents two practical solutions—session broadcasting and a consistent‑hashing based routing—using Spring Boot, Spring Cloud Gateway, Redis, Netty, and Ribbon to achieve scalable, reliable real‑time messaging.

Spring BootSpring CloudWebSocket
0 likes · 19 min read
How to Build a Distributed WebSocket Cluster with Spring Cloud and Consistent Hashing
IT Architects Alliance
IT Architects Alliance
Nov 2, 2021 · Backend Development

Building a Scalable Distributed WebSocket Cluster Using Spring Cloud & Consistent Hashing

This article analyzes the challenges of multi‑user WebSocket communication in a clustered environment, compares Netty and Spring WebSocket implementations, and presents two practical solutions—session broadcast and a consistent‑hashing based routing scheme—complete with code samples, gateway configuration, and load‑balancing considerations.

Distributed SystemsNettySpring Cloud
0 likes · 18 min read
Building a Scalable Distributed WebSocket Cluster Using Spring Cloud & Consistent Hashing
21CTO
21CTO
Oct 31, 2021 · Backend Development

How to Build a Distributed WebSocket Cluster with Spring Cloud, Eureka, and Consistent Hashing

This article explores practical approaches for enabling multi‑user communication in a distributed WebSocket cluster, covering session handling challenges, architecture design, technology stack choices, Netty versus Spring WebSocket implementations, consistent‑hashing load balancing, and detailed code examples for Spring Cloud Gateway and Ribbon integration.

Distributed SystemsSpring BootSpring Cloud
0 likes · 19 min read
How to Build a Distributed WebSocket Cluster with Spring Cloud, Eureka, and Consistent Hashing
High Availability Architecture
High Availability Architecture
Oct 26, 2021 · Databases

Practical Guide to Horizontal Database Sharding: Design Principles, Common Schemes, and Expansion Strategies

This article explains the background, design criteria, and practical implementations of horizontal database sharding—including range, hash, gene, routing‑table, and consistent‑hash methods—while discussing common pitfalls, data‑skew mitigation, and both doubling and consistent‑hash expansion techniques for MySQL clusters.

consistent hashingdatabase scalinghash algorithm
0 likes · 24 min read
Practical Guide to Horizontal Database Sharding: Design Principles, Common Schemes, and Expansion Strategies
dbaplus Community
dbaplus Community
Oct 21, 2021 · Databases

How We Scaled an E‑commerce Order System with Sharding, Consistent Hashing, and Zero‑Downtime Migration

This article details how a rapidly growing e‑commerce platform migrated from a single MySQL instance to a 16‑shard architecture using Sharding‑Jdbc, introduced consistent‑hashing to mitigate data skew, leveraged ES+HBase for multi‑dimensional queries, and implemented zero‑downtime migration strategies such as dual‑write and Canal replication.

ElasticsearchHBaseconsistent hashing
0 likes · 21 min read
How We Scaled an E‑commerce Order System with Sharding, Consistent Hashing, and Zero‑Downtime Migration
vivo Internet Technology
vivo Internet Technology
Oct 20, 2021 · Databases

Database Sharding Strategies: Common Approaches, Pitfalls, and Best Practices

Effective MySQL sharding requires sustainable, low‑skew designs, favoring hash‑based methods with proper coprime counts, two‑stage partitioning, routing tables, or consistent hashing, while supporting expansion via doubling or flexible consistent‑hash growth to avoid hot spots and uneven data distribution.

Data PartitioningHash Shardingbackend-development
0 likes · 23 min read
Database Sharding Strategies: Common Approaches, Pitfalls, and Best Practices
Tencent Cloud Developer
Tencent Cloud Developer
Jun 16, 2021 · Backend Development

Comparison of Four Consistent Hashing Algorithms: Ketama, Rendezvous, Jump Consistent Hash, and Maglev

The article compares four consistent‑hashing algorithms—Ketama’s ring with virtual nodes, Rendezvous’s highest‑random‑weight method, Google’s Jump Consistent Hash, and Maglev’s lookup‑table approach—evaluating their balance, monotonicity, stability, scalability, and time complexity, and concludes that Ketama and Jump offer the best overall trade‑off.

Distributed Systemsalgorithm comparisonconsistent hashing
0 likes · 23 min read
Comparison of Four Consistent Hashing Algorithms: Ketama, Rendezvous, Jump Consistent Hash, and Maglev
Ctrip Technology
Ctrip Technology
May 20, 2021 · Backend Development

Evolution and Architecture of Ctrip's Service Registry (Artemis)

This article reviews the seven‑year evolution of Ctrip's microservice service‑registry from manual data maintenance through an etcd‑based solution to the self‑developed Artemis system, detailing its architecture, consistent‑hash data partitioning, high‑availability design, and second‑level instance up/down mechanisms.

Cloud NativeDistributed SystemsMicroservices
0 likes · 16 min read
Evolution and Architecture of Ctrip's Service Registry (Artemis)
Laravel Tech Community
Laravel Tech Community
May 9, 2021 · Backend Development

Understanding Consistent Hashing: From Simple Modulo Hash to Optimizations

This article explains the drawbacks of a basic modulo hash algorithm for key distribution, demonstrates how consistent hashing resolves scaling and node‑failure issues, and discusses virtual‑node techniques to mitigate data skew and improve load balancing in distributed cache systems.

Data Skewconsistent hashingdistributed caching
0 likes · 5 min read
Understanding Consistent Hashing: From Simple Modulo Hash to Optimizations
Big Data Technology & Architecture
Big Data Technology & Architecture
Apr 20, 2021 · Fundamentals

Consistent Hashing and Jump Consistent Hash: Concepts, Implementation, and Use Cases

This article explains the fundamentals of consistent hashing, compares the classic ring‑based method with the more efficient jump consistent hash algorithm, provides reference implementations in C++, discusses their time‑complexity and practical trade‑offs, and shows how they are applied in systems such as Greenplum.

Distributed SystemsGreenplumalgorithm
0 likes · 11 min read
Consistent Hashing and Jump Consistent Hash: Concepts, Implementation, and Use Cases
JavaEdge
JavaEdge
Sep 8, 2020 · Databases

Understanding Redis Sharding: Benefits, Strategies, and Implementation

This article explains Redis sharding, covering its purpose, various partitioning methods such as range and hash partitioning, implementation approaches like client‑side and proxy‑assisted sharding, their drawbacks, and practical steps for migration and using Redis Cluster or Twemproxy.

PartitioningProxyconsistent hashing
0 likes · 9 min read
Understanding Redis Sharding: Benefits, Strategies, and Implementation
ITPUB
ITPUB
Aug 18, 2020 · Backend Development

Do Consistent Hashes Really Keep Your Cluster Balanced? Real-World Tests and Fixes

This article experimentally validates consistent hashing by adding and removing nodes in a 5‑node cluster, reveals key distribution imbalance and avalanche risks, and proposes solutions such as node scaling and virtual node virtualization, complete with Python code examples and detailed analysis.

Node Scalingconsistent hashingkey distribution
0 likes · 19 min read
Do Consistent Hashes Really Keep Your Cluster Balanced? Real-World Tests and Fixes
ITPUB
ITPUB
Aug 18, 2020 · Backend Development

Testing Consistent Hashing: Real‑World Node Scaling, Load Balance & Avalanche Risks

This article experimentally validates consistent hashing by adding and removing nodes in a simulated cluster, examines key redistribution, reveals load‑imbalance and avalanche vulnerabilities, and proposes solutions such as virtual nodes and adaptive replica factors, providing Python code examples and detailed observations.

Pythonconsistent hashingload balancing
0 likes · 17 min read
Testing Consistent Hashing: Real‑World Node Scaling, Load Balance & Avalanche Risks
ITPUB
ITPUB
Aug 17, 2020 · Fundamentals

How Consistent Hashing Minimizes Data Movement in Scalable Systems

This article explains the principle of consistent hashing, shows how to build a 2^32‑range hash ring, map nodes and keys onto it, and demonstrates node addition and removal with a Python implementation that highlights reduced data reshuffling compared to simple modulo hashing.

Node Scalingconsistent hashinghash ring
0 likes · 17 min read
How Consistent Hashing Minimizes Data Movement in Scalable Systems
ITPUB
ITPUB
Aug 17, 2020 · Fundamentals

Why Consistent Hashing Cuts Data Movement When Scaling Distributed Systems

This article explains the principles of consistent hashing, compares it with simple modulo and virtual bucket methods, demonstrates how to build a hash ring, map nodes and keys, and shows through Python code how node addition or removal only affects a small portion of the data.

PythonScalabilityconsistent hashing
0 likes · 17 min read
Why Consistent Hashing Cuts Data Movement When Scaling Distributed Systems
Programmer DD
Programmer DD
Jul 30, 2020 · Databases

Understanding Redis Cluster: Sharding, High Availability, and Hash Slot Mechanics

This article explains Redis Cluster’s automatic sharding, built‑in high availability, the role of the cluster bus ports, the limitations of traditional hash algorithms, and how consistent hashing with virtual nodes and the 16384‑slot hash slot mechanism enable efficient data distribution and low‑cost node scaling.

ClusterHash Slotconsistent hashing
0 likes · 3 min read
Understanding Redis Cluster: Sharding, High Availability, and Hash Slot Mechanics
Architect's Alchemy Furnace
Architect's Alchemy Furnace
Jul 19, 2020 · Fundamentals

Understanding Consistent Hashing: Principles, Design, and Real-World Applications

This article explains the fundamentals of hash functions, outlines the key characteristics of a good hash algorithm, and dives deep into consistent hashing—its background, mechanism, desirable properties, fault tolerance, scalability, and the use of virtual nodes to solve data skew in distributed systems.

Distributed SystemsHashingScalability
0 likes · 12 min read
Understanding Consistent Hashing: Principles, Design, and Real-World Applications
Programmer DD
Programmer DD
Jul 11, 2020 · Fundamentals

Mastering Consistent Hashing: Balance, Monotonicity, and Minimal Data Shifts

Consistent hashing, introduced by MIT in 1997, addresses hotspot issues in distributed systems by ensuring balance, monotonicity, spread, and load properties, using a ring hash space, virtual nodes, and minimal data movement when nodes are added or removed.

Distributed Systemsconsistent hashingload balancing
0 likes · 10 min read
Mastering Consistent Hashing: Balance, Monotonicity, and Minimal Data Shifts
Top Architect
Top Architect
Apr 27, 2020 · Backend Development

Consistent Hashing: Principles, Optimizations, Graceful Scaling and Comparison with Redis HashSlot

This article explains the concept of consistent hashing, its application in distributed cache load balancing, analyzes issues like data skew and cache avalanche, presents virtual‑node optimizations with Java test code, discusses graceful scaling strategies, and compares it to Redis’s HashSlot and P2P approaches.

Hash Slotconsistent hashingdistributed cache
0 likes · 21 min read
Consistent Hashing: Principles, Optimizations, Graceful Scaling and Comparison with Redis HashSlot
ITPUB
ITPUB
Dec 2, 2019 · Backend Development

How Xiaomi Built Talos: A Scalable, Stateless Message Queue for Billions of Events

This article details Xiaomi's journey from Kafka 0.8 to the home‑grown Talos system, covering business motivations, storage‑compute separation architecture, key challenges such as tail‑read and consistency, and extensive performance, resource, and platform optimizations that enable a high‑throughput, multi‑tenant messaging service.

Distributed MessagingHDFSMessage Queue
0 likes · 16 min read
How Xiaomi Built Talos: A Scalable, Stateless Message Queue for Billions of Events
Programmer DD
Programmer DD
Mar 16, 2019 · Backend Development

Mastering Consistent Hashing: Custom Ordered Map and Performance Tips

This article explains the principles of consistent hashing, demonstrates how to implement a custom ordered map and a TreeMap‑based solution for node selection, compares their performance, and shows how to integrate the algorithm into a routing framework with extensible strategies for backend services.

Routing AlgorithmTreeMapconsistent hashing
0 likes · 11 min read
Mastering Consistent Hashing: Custom Ordered Map and Performance Tips
Architects' Tech Alliance
Architects' Tech Alliance
Oct 15, 2018 · Databases

Data Sharding in Distributed Systems: Partitioning Strategies, Metadata Management, and Consistency Mechanisms

The article explains how distributed storage systems solve the fundamental problems of data sharding and redundancy by describing three sharding methods (hash, consistent‑hash, and range‑based), the criteria for choosing a shard key, the role of metadata servers, and consistency techniques such as leasing, all illustrated with concrete examples and code snippets.

Distributed Systemsconsistent hashingdatabases
0 likes · 25 min read
Data Sharding in Distributed Systems: Partitioning Strategies, Metadata Management, and Consistency Mechanisms
dbaplus Community
dbaplus Community
Sep 17, 2018 · Databases

Mastering Data Sharding: Hash, Consistent Hash, and Range Partition Strategies Explained

This article explains the core concepts of data sharding in distributed storage systems, compares hash, consistent‑hash, and range‑based partitioning, discusses how to choose sharding keys, examines metadata server designs and high‑availability solutions, and introduces lease‑based cache consistency mechanisms.

consistent hashinghash partitionlease mechanism
0 likes · 28 min read
Mastering Data Sharding: Hash, Consistent Hash, and Range Partition Strategies Explained
Qunar Tech Salon
Qunar Tech Salon
May 25, 2018 · Backend Development

Analysis of Memcached Failure and Consistent Hashing Mechanism in XMemcached Client

This article presents a detailed failure analysis of a memcached service outage, explaining how the XMemcached client uses consistent hashing and heartbeat mechanisms to manage sessions, the impact of server loss on request latency, and the verification steps and solution to reduce session timeout and improve recovery.

BackendHeartbeatMemcached
0 likes · 13 min read
Analysis of Memcached Failure and Consistent Hashing Mechanism in XMemcached Client
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Apr 24, 2018 · Databases

How Dynamo Achieves High‑Availability in Distributed Key‑Value Stores

This article explains Dynamo, the decentralized key‑value storage system, covering its design goals, consistent‑hashing partitioning with virtual nodes, replication strategies, quorum‑based consistency, conflict resolution with vector clocks, hinted handoff, Merkle‑tree synchronization, and gossip‑based failure detection.

DynamoGossip ProtocolReplication
0 likes · 9 min read
How Dynamo Achieves High‑Availability in Distributed Key‑Value Stores
Java Backend Technology
Java Backend Technology
Mar 13, 2018 · Fundamentals

Why Consistent Hashing Is the Key to Scalable Redis Clusters

This article explains the limitations of simple modulo hashing for Redis clusters, introduces consistent hashing with a virtual‑node ring to achieve fault tolerance and seamless scaling, and demonstrates how the algorithm reduces data skew and improves cache performance in distributed systems.

Distributed Systemscachingconsistent hashing
0 likes · 11 min read
Why Consistent Hashing Is the Key to Scalable Redis Clusters
Vipshop Quality Engineering
Vipshop Quality Engineering
Jan 17, 2018 · Backend Development

Uncovering Hidden Cache Failures: A Robustness Test of Memcached with spymemcached

This article details a comprehensive robustness test of a core public service system's caching layer, exposing how decreasing Memcached (MC) instances dramatically impacts TPS and latency, analyzes the underlying Ketama consistent‑hash algorithm, and proposes concrete improvements to mitigate such failures.

Backend testingMemcachedcache robustness
0 likes · 11 min read
Uncovering Hidden Cache Failures: A Robustness Test of Memcached with spymemcached
Java Backend Technology
Java Backend Technology
Jan 2, 2018 · Operations

When to Adopt Distributed Architecture? 5 Common Patterns Explained

This article explains why and when to move to distributed architecture, outlines the typical upgrade and splitting steps, and details five common distributed cluster patterns—including load balancing, leader election, blockchain, master‑slave, and consistent hashing—highlighting their trade‑offs and use cases.

Architecture PatternsDistributed SystemsMicroservices
0 likes · 8 min read
When to Adopt Distributed Architecture? 5 Common Patterns Explained
Tencent Cloud Developer
Tencent Cloud Developer
Feb 14, 2017 · Databases

TDSQL Audit Capability: Architecture, Kafka Integration, and Consistency Hash Implementation

TDSQL’s cloud‑based audit solution combines a three‑proxy high‑availability layer, Kafka’s O(1) persistent messaging, and a distributed audit‑server that uses consistent hashing and multi‑coroutine processing to consume data within seconds, while fault‑tolerant offsets, majority acknowledgments, and Tencent Cloud MongoDB storage ensure secure, ordered, scalable, and highly reliable audit logging.

KafkaMongoDBTDSQL
0 likes · 7 min read
TDSQL Audit Capability: Architecture, Kafka Integration, and Consistency Hash Implementation
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Oct 8, 2016 · Fundamentals

Mastering Distributed Systems: Overcoming Network Challenges and Consistency Trade‑offs

This article explores the core difficulties of distributed systems—including network latency, failures, the CAP theorem, consistency models, and common techniques such as consistent hashing, quorum, vector clocks, lease mechanisms, gossip protocols, and distributed transaction protocols—providing practical insights and references for building robust scalable architectures.

CAP theoremDistributed SystemsNWR quorum
0 likes · 22 min read
Mastering Distributed Systems: Overcoming Network Challenges and Consistency Trade‑offs
MaGe Linux Operations
MaGe Linux Operations
Sep 8, 2016 · Backend Development

How Consistent Hashing Powers Distributed Memcached Caching

This article explains how memcached’s client‑side distribution works, illustrates the role of consistent hashing in assigning keys to servers, compares traditional modulo hashing with consistent hashing, discusses hash function choices, and provides complete Java and Python implementations for a scalable distributed cache.

BackendMemcachedconsistent hashing
0 likes · 12 min read
How Consistent Hashing Powers Distributed Memcached Caching
MaGe Linux Operations
MaGe Linux Operations
Aug 20, 2016 · Backend Development

Design Scalable Website Architecture: Clusters, Load Balancing & Consistent Hashing

This article explains how to achieve website scalability through physical separation, server clustering, various load‑balancing techniques, consistent‑hashing for distributed caches, and scaling strategies for relational and NoSQL databases, providing practical guidance for building resilient back‑end systems.

Scalabilityconsistent hashingdistributed cache
0 likes · 16 min read
Design Scalable Website Architecture: Clusters, Load Balancing & Consistent Hashing
Qunar Tech Salon
Qunar Tech Salon
May 29, 2016 · Backend Development

Understanding Distributed Caching: Principles and Implementation of Memcached

This article explains the fundamentals of caching, the role of distributed caches like memcached in high‑concurrency environments, and details the algorithms—including remainder hashing and consistent hashing with virtual nodes—that enable memcached to distribute data across multiple servers efficiently.

Memcachedcache algorithmsconsistent hashing
0 likes · 10 min read
Understanding Distributed Caching: Principles and Implementation of Memcached
Architecture Digest
Architecture Digest
May 12, 2016 · Backend Development

Understanding Distributed Caching with Memcached: Principles and Algorithms

This article explains the fundamentals of caching, the role of memcached in high‑concurrency environments, and details the distributed implementation methods such as remainder hashing and consistent hashing, including their advantages, drawbacks, and optimization techniques.

Memcachedcaching algorithmsconsistent hashing
0 likes · 11 min read
Understanding Distributed Caching with Memcached: Principles and Algorithms
21CTO
21CTO
May 9, 2016 · Backend Development

Unveiling Memcached’s Distributed Caching: Algorithms and Implementation

Under high‑concurrency loads, disk I/O becomes a bottleneck, prompting the use of caches; this article explains the fundamentals of caching, the role of memcached, and details its distributed implementation, covering simple modulo hashing, consistent hashing, and optimized virtual‑node techniques.

Memcachedbackend-developmentcache algorithms
0 likes · 9 min read
Unveiling Memcached’s Distributed Caching: Algorithms and Implementation
Architect
Architect
May 9, 2016 · Backend Development

Understanding Distributed Caching and the memcached Architecture

This article explains the fundamentals of caching, describes how memcached works as a distributed in‑memory cache, and details the hashing algorithms—including remainder hashing and consistent hashing with virtual nodes—used by clients to achieve scalable cache distribution.

Distributed SystemsMemcachedcaching
0 likes · 7 min read
Understanding Distributed Caching and the memcached Architecture
Architect
Architect
Dec 13, 2015 · Databases

Redis Partitioning: How to Store Data Across Multiple Redis Instances

This article explains the concept, benefits, methods, and practical considerations of partitioning data across multiple Redis instances, covering range and hash partitioning, consistent hashing, implementation options, drawbacks, and recommended tools such as Redis Cluster and Twemproxy.

PartitioningRedis ClusterTwemproxy
0 likes · 11 min read
Redis Partitioning: How to Store Data Across Multiple Redis Instances
Java High-Performance Architecture
Java High-Performance Architecture
Oct 27, 2015 · Backend Development

How Consistent Hashing Powers Scalable Memcached Clusters

Caching dramatically improves website performance by storing data in memory for faster responses and reducing database load, with Memcached and Redis as popular solutions; proper routing algorithms like consistent hashing are essential to scale clusters without causing cache misses or service disruption.

Backend PerformanceMemcachedcaching
0 likes · 2 min read
How Consistent Hashing Powers Scalable Memcached Clusters
Qunar Tech Salon
Qunar Tech Salon
Dec 29, 2014 · Backend Development

Consistent Hashing: Principles, Monotonicity, and Virtual Nodes

This article explains the consistent hashing algorithm, its motivation in cache systems, the concept of monotonicity, the step‑by‑step mapping process, and how virtual nodes improve balance and resilience when cache servers are added or removed.

Distributed Systemsconsistent hashingload balancing
0 likes · 9 min read
Consistent Hashing: Principles, Monotonicity, and Virtual Nodes