Scaling · Intermediate · 9 min

Stateless Services

Find hidden instance-local state before routing requests across replicas.

STEP 1 / 10
Create a session — isometric concept diagramIdentify every piece of state that survives between requests. Components: 1. Browser. Representative clients, not a literal user count; 2. App A. Logical component or processing boundary. Connections: 1. Browser to App A: Create a session; 2. App A to Browser: Reply: App A. Illustrations are conceptual, not deployed capacity or user counts.Browser → App A: Create a session1App A → Browser: Reply: App A2Browser: Representative clients, not a literal user count1BrowserRepresentative clients, not aliteral user countApp A: Logical component or processing boundary2App ALogical component or processingboundary
1Browser2App A
  1. 1Browser → App ARequestCreate a session
  2. 2App A → BrowserReplyReply: App A

Conceptual illustration · figures do not imply user counts, deployed capacity or replica counts.

2 components visible · Browser + App A highlighted

Orange: request / query · Blue: reply · Purple: event / control · Arrows show direction; speed is illustrative.

You’ll learn

  • Instance-local session state makes routing observable.
  • Stateless application handling does not mean the system has no state.
  • Classify durable state separately from replaceable local data.

PUT THE IDEA TO WORK

From learning to practice

No related challenges are currently available. Browse practice

RELATED PATTERNS

Client–Server ↗

Microservices ↗

Further reading

Microsoft · Stateless web and worker tiers ↗