How Redis Cluster Works Internally — A Deep Dive

Table of contents Introduction High-level overview: goals and building blocks Key distribution: hash slots and key hashing Cluster topology and the cluster bus Replication, failover and election protocol Client interaction: redirects and MOVED/ASK Rebalancing and resharding Failure detection and split-brain avoidance Performance and consistency trade-offs Practical tips for operating Redis Cluster Conclusion Resources Introduction Redis Cluster is Redis’s native distributed mode that provides horizontal scaling and high availability by partitioning the keyspace across multiple nodes and using master–replica groups for fault tolerance[1]. This article explains the cluster’s internal design and runtime behavior so you can understand how keys are routed, how nodes coordinate, how failover works, and what trade-offs Redis Cluster makes compared to single-node Redis[1][2]. ...

December 12, 2025 · 7 min · 1382 words · martinuke0

HAProxy Zero to Hero: The Definitive In‑Depth Guide to High‑Performance Load Balancing

Introduction HAProxy is the de facto open-source load balancer and reverse proxy for high-traffic websites, APIs, and microservices. It’s fast, battle-tested, extremely configurable, and equally at home terminating TLS, routing based on headers or paths, defending against abuse, or load balancing TCP streams. This zero-to-hero guide takes you from first principles to production-ready configurations. We’ll cover installation, core concepts, practical configuration patterns, TLS, health checks, observability, advanced features like ACLs and stick tables, and safe reloads—with copy-and-pasteable examples. ...

December 5, 2025 · 9 min · 1913 words · martinuke0
Feedback