MEPX
Chapter 2 of 10All chapters

Chapter 2 of 10

Tiers and statelessness

Separating the layers.

The classic split

Clients talk to stateless application servers, which talk to stateful data stores. Keeping state out of the application tier is what lets you add and remove servers freely.

  • Sessions belong in a shared store or a signed token, not in server memory.
  • Any request should be servable by any instance.

Why it matters

Stateless servers make rolling deployments, autoscaling and crash recovery routine instead of dramatic.