Interview Prep/Networking/Load Balancers, Proxies & CDNs

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.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancers, Proxies & CDNs