Overview

Elastic Load Balancer (ELB) offers advanced traffic handling features to improve

user session continuity, availability, security, and graceful instance shutdown.

This guide covers:

Each explained with a kaptaindevops scenario.


Sticky Sessions (Session Affinity)

What it does

Ensures a user is always routed to the same backend instance during a session.

Useful when servers store session data locally, like login or shopping cart state.

When to use

ALB vs NLB Sticky Rules

Load Balancer Sticky Session Support
ALB Yes (application-based cookies)
NLB Only for TCP connections (connection stickiness)