Remove accidental dependence on one application instance
Suppose a customer begins a multi-step booking process. If the first request reaches instance A and the next reaches instance B, the application should not lose the necessary context simply because instance B has no access to instance A's local memory. Relevant session information can be held in appropriately secured client state or a shared data store, depending on sensitivity and consistency requirements. A signed token is not a substitute for all server-side state. Revocation, expiry, authorization changes and confidential information still need deliberate handling. AWS's guidance on stateless services describes how reducing dependence on local instance state supports replacement and horizontal scaling.


