# Serverless routing made sticky

DevFeed: [Serverless routing made sticky](<https://devfeed.tech/articles/serverless-routing-made-sticky-91153.md>)

Original publisher: [Read original article](<https://modal.com/blog/serverless-routing-made-sticky>)

Author: Siwon Park; Kartik Sinha; Kathir Meyyappan; Daniel Shaar

Published: 2026-10-20T00:00:00Z

Content type: article

Language: en

Sources: [Modal](<https://devfeed.tech/sources/modal.md>)

Topics: [Serverless](<https://devfeed.tech/topics/serverless.md>), [Load Balancing](<https://devfeed.tech/topics/load-balancing.md>)

Tags: [affinity](<https://devfeed.tech/tags/affinity.md>), [agents](<https://devfeed.tech/tags/agents.md>), [autoscaling](<https://devfeed.tech/tags/autoscaling.md>), [games](<https://devfeed.tech/tags/games.md>), [modal](<https://devfeed.tech/tags/modal.md>), [multiplayer](<https://devfeed.tech/tags/multiplayer.md>), [routing](<https://devfeed.tech/tags/routing.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [servers](<https://devfeed.tech/tags/servers.md>), [sessions](<https://devfeed.tech/tags/sessions.md>), [sticky](<https://devfeed.tech/tags/sticky.md>), [sticky-sessions](<https://devfeed.tech/tags/sticky-sessions.md>), [voice](<https://devfeed.tech/tags/voice.md>)

## AI overview

Modal Sticky Sessions keep each session's requests on one container while allowing the fleet to autoscale with active sessions. A session starts through the SDK or HTTP API and returns a signed token clients can share to access the same state. Unlike WebSocket connections tied to individual Function inputs, which may reconnect to another container, or best-effort affinity routing, sessions provide stronger routing guarantees. Modal's proxies validate token-encoded routing metadata; load balancers probe containers for available concurrency, and sessions queue when a container reaches its configured session capacity. The autoscaler uses active sessions and queued demand to scale. The article describes voice agents, shared chat rooms, and multiplayer games as use cases, while noting that sessions keep their state on the assigned container.

## Source excerpt

Voice agents, multiplayer games, and other workloads can now build on Sticky Sessions. Achieve strong affinity without losing autoscaling. Here's how we built this on Modal Servers.