Tutorials

Hands-on deep dives into DevOps and server-side topics, with every command runnable in an attached remote playground.

Tutorial

Building an eBPF/XDP NAT-Based (Weighted) Round Robin Load Balancer from Scratch

In this lab, you’ll build a NAT-based eBPF/XDP load balancer from scratch and implement both round-robin and weighted round-robin backend selection. Along the way, you’ll learn how to manage state in eBPF maps and distribute traffic across backends based on simple and capacity-aware scheduling strategies.

Building an eBPF/XDP NAT-Based (Weighted) Round Robin Load Balancer from Scratch (cover image)