Tutorials

Deep dives into DevOps and server-side topics, combining theory with hands-on examples. Run every command in an attached remote playground, from your browser or local terminal over SSH — no setup required.

Collection
Category
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)