Choosing the right load balancer for your needs
One of the key characteristics of a modern, cloud-based application is to be able to scale horizontally (adding more instances to meet demand or recover from failure). In Chapter 4, we looked at how you can use deployments to create and manage multiple Pods, but you also need to distribute user traffic over those Pods. This is what an LB does, and we will work with two main types in EKS: the Application Load Balancer (ALB) and the Network Load Balancer (NLB), which are both types of ELB. In the next two sections, we will consider two key concepts that can be applied to any LB.
Concept 1 – understanding Layer 4 and Layer 7 load balancer networking
When we talk about layers in a networking context, we are talking about the Open Systems Interconnection (OSI) model, which was developed in the 1980s to simplify interconnection between different networks. The OSI model describes a seven-layer model in which the top layer, Layer...