What are sticky sessions and what are the drawbacks?
IntermediateConceptLoad Balancers, Proxies & CDNs
Answer
Session affinity pins a client to one backend, via a cookie (ALB) or source IP hash. It helps stateful apps that keep sessions in memory.
Drawbacks: uneven load, lost sessions on scale-in or crash, and complexity for blue/green. Preferred design: stateless services with shared session storage (Redis, DynamoDB) or signed tokens.
More on Load Balancers, Proxies & CDNs
What is a load balancer and why do we use one?BeginnerWhat is the difference between L4 and L7 load balancing?IntermediateCompare ALB, NLB, GWLB and Classic Load Balancer in AWS.IntermediateWhat load-balancing algorithms are common?BeginnerWhat are health checks and how should they be designed?AdvancedWhat is connection draining (deregistration delay)?Intermediate