Urgent.News

What's breaking now, across thousands of outlets.

Tech

Load Balancing: The Matrix Reloaded

The Quest Begins (The "Why") Honestly, I was staring at our API gateway one Friday night, watching the metrics spike like a boss fight in Dark Souls . Every time a new feature rolled out, a handful of nodes would get hammered while the rest twiddled their thumbs. Our round‑robin balancer looked fine on paper, but in production it felt like we were sending all the Neo’s to the same agent while the…

The article "Load Balancing: The Matrix Reloaded" explores the challenges of distributing incoming requests evenly across servers in a production environment. The author shares their experience of witnessing uneven load distribution when new features were rolled out, leading to a few nodes being overburdened while others remained idle.

This prompted them to investigate smarter load balancing techniques. The key insight came from the Power of Two Choices method, which involves picking two servers at random for each incoming request and sending it to the less loaded server. This simple yet effective approach significantly reduces the maximum load on any single server, leading to an exponential improvement over traditional round-robin balancing.

The author provides code examples for implementing this method and discusses the trade-offs, such as the need for lightweight load information and potential latency costs when querying external stats services.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Cilium mTLS ztunnel: Sidecar-Free Encryption Explained

Originally published on DevToolHub . Cilium mTLS ztunnel doesn't need a SPIRE server — and that's actually the second-biggest news here.

  • Cilium introduces ztunnel, an mTLS solution without a separate SPIRE server.
  • Users must disable cluster mesh and generate Kubernetes secrets for ztunnel.

More from Thursday 15 October →