This talk covers how Envoy’s load balancing algorithms work, with a focus on how the different components of load balancing (priorities, localities, etc.) work together and how they interact with mechanisms such as retries and outlier detection. We will then make things more concrete by detailing how these components were used to implement Istio and Square’s locality load balancing features.