Session affinity

Session affinity (sticky sessions)

AI

Session affinity, or sticky sessions, sends every request from one conversation to the same server, so that server keeps the conversation's state in memory.

What is Session affinity?

Large systems spread work across many servers using a load balancer. Normally, any server can handle any request. Session affinity changes that: once a conversation starts on one server, the load balancer keeps sending that conversation's traffic to the same server. Why voice systems use it: a live call is a continuous stream. The server handling it holds the audio stream, what has been said so far and any lookups in progress. Moving the call mid-way to another server would break the audio or lose that context. The trade-offs: - Uneven load: some servers can end up busier than others. - Failures: if the server holding a call goes down, that call may drop unless the system can recover its state elsewhere. - Updates: servers must finish their current calls before they are restarted. The alternative is keeping conversation state in a shared store, so any server can pick up any request. That is easier to scale but adds a small delay for each lookup, which real-time voice tries to avoid. Who deals with it: mostly the engineers who build and run voice platforms. Buyers meet the term in technical documentation or when building their own voice stack.

Example

A caller's audio stream is handled by server 7. Session affinity makes sure every packet of that call keeps going to server 7, so the agent never loses track of the conversation mid-sentence.

Why Session affinity Matters

It is one of the engineering choices that keeps live calls stable at scale, and it explains why voice systems are built differently from simple websites.

Explore More Terms

Browse our complete glossary of e-commerce and subscription terms.

Space, at your fingertips

What would you do with 22% more revenue?