sessionaffinity
SessionAffinity is a technique used by load balancers and service proxies to route all requests from a given client to a single backend server for the duration of a session. The goal is to preserve session state and avoid repeated initialization or authentication on each request.
Common approaches to implement session affinity include: Client IP affinity, which uses the client's IP address
Benefits include improved user experience and reduced server-side session retrieval costs for apps that store state
Platform patterns vary. In Kubernetes, a Service can specify sessionAffinity: ClientIP with an optional timeoutSeconds to
See also: load balancing, session persistence, sticky sessions, and stateful service design.