Tagged articles
24 articles
Page 1 of 1
Code Wrench
Code Wrench
Jan 22, 2026 · Backend Development

Mastering Consistent Hashing in Go: From Simple Modulo to Virtual Nodes

This article explains why naive modulo-based routing fails in distributed Go services, introduces the stable and scalable concept of consistent hashing, walks through a basic implementation, shows how virtual nodes improve balance, and outlines common use cases and pitfalls for production systems.

Golangvirtual nodes
0 likes · 10 min read
Mastering Consistent Hashing in Go: From Simple Modulo to Virtual Nodes
Su San Talks Tech
Su San Talks Tech
Dec 11, 2025 · Databases

How to Scale a 900 M‑Row Message Table to 60 B Rows Without Downtime

This article details a comprehensive sharding strategy for a high‑traffic message table, explaining why early partitioning is essential, how to design language‑based vertical shards combined with hash‑based horizontal shards, calculate table counts and virtual nodes, and execute a zero‑downtime migration using dual‑writes and gradual traffic rollout.

Performance Optimizationhorizontal partitioningmysql
0 likes · 16 min read
How to Scale a 900 M‑Row Message Table to 60 B Rows Without Downtime
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
NewBeeNLP
NewBeeNLP
Apr 26, 2024 · Artificial Intelligence

Self-Attention vs Virtual Nodes in Graph Neural Networks: What Really Works?

This article reviews the paper “Distinguished in Uniform: Self-Attention vs. Virtual Nodes,” comparing graph Transformers and MPGNNs with virtual nodes on theoretical consistency and experimental performance, revealing that neither approach universally dominates the other.

MPGNNSelf-Attentiongraph neural networks
0 likes · 9 min read
Self-Attention vs Virtual Nodes in Graph Neural Networks: What Really Works?
Alibaba Cloud Native
Alibaba Cloud Native
Jan 12, 2024 · Cloud Native

Unlock Second-Scale Elastic Scheduling with ACK Virtual Nodes

This article explains how to use Alibaba Cloud Container Service (ACK) virtual nodes and Elastic Container Instances (ECI) to achieve second‑scale elasticity, covering installation, ResourcePolicy configuration, zone‑aware scheduling, high‑availability setups, and performance results with concrete YAML examples.

ECIKubernetesResourcePolicy
0 likes · 12 min read
Unlock Second-Scale Elastic Scheduling with ACK Virtual Nodes
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
Alibaba Cloud Native
Alibaba Cloud Native
May 11, 2022 · Cloud Native

How Zuoyebang Cut 22% Costs with Kubernetes Serverless Virtual Nodes

Zuoyebang’s shift to cloud‑native architecture leveraged Alibaba Cloud’s Kubernetes Serverless virtual nodes, achieving a 22.5% cost reduction during peak traffic by dynamically scaling workloads, while addressing scheduling, observability, and performance challenges through custom schedulers, enhanced monitoring, and careful testing.

Cloud NativeCost OptimizationKubernetes
0 likes · 11 min read
How Zuoyebang Cut 22% Costs with Kubernetes Serverless Virtual Nodes
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
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
JD Tech
JD Tech
Jan 20, 2022 · Backend Development

Consistent Hash Algorithm and Its Application in Dubbo Load Balancing

This article explains the principles of consistent hashing, its data‑skew issue, how virtual nodes mitigate that problem, and demonstrates the implementation and usage of ConsistentHashLoadBalance in Dubbo with detailed code analysis and practical load‑balancing examples.

Consistent HashDubbohash algorithm
0 likes · 14 min read
Consistent Hash Algorithm and Its Application in Dubbo Load Balancing
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
vivo Internet Technology
vivo Internet Technology
Nov 11, 2020 · Big Data

Understanding Distributed Hash Tables (DHT) and Their Improvements

The article explains how Distributed Hash Tables replace simple modulo hashing with a ring‑based scheme, demonstrates severe data skew in basic implementations, and shows that adding multiple virtual nodes plus a load‑boundary factor dramatically balances storage and request distribution across cluster nodes.

DHTData SkewDistributed Hash Table
0 likes · 9 min read
Understanding Distributed Hash Tables (DHT) and Their Improvements
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
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
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