02Chapter 2: What counts as session stateThis chapter assumes you know the basics of HTTP requests, responses, headers and cookies. It also assumes you have built a web service in some language and know what a load balancer does. Later chapters cover where to store session state. This one covers how to recognize it.3 min read
03Chapter 3: Why statelessness helps scaling and deploysThis chapter assumes you know HTTP requests, headers and cookies, you have built a web service or API, and you know that a load balancer spreads requests across servers. It explains why a stateless service is easier to scale, deploy and recover. Later chapters cover where the session state goes.4 min read
04Chapter 4: Sticky sessions and their limitsThis chapter assumes you know how HTTP cookies work and what a load balancer does. It covers the simplest way to keep session state on app instances, and where that approach breaks down.3 min read
05Chapter 5: Session identifiers and secure cookiesThis chapter assumes you know basic HTTP, including request and response headers, and that you have built a small web service. It covers how a browser and a server agree on who is making a request when the server keeps no per-connection memory.3 min read
06Chapter 6: Keeping sessions in a shared storeThis chapter assumes you know how HTTP cookies work, have built a web service in some language, and understand what a load balancer does. It covers the central session store: what it is, how to build one on Redis, and the errors that most often appear in practice.3 min read
07Chapter 7: Keeping state in signed client-side tokensThis chapter assumes you know HTTP headers and cookies, have built a web API, and understand what a load balancer does. It also assumes you have seen the shared session store approach from the previous chapter.4 min read
08Chapter 8: Expiry, rotation and revocationThis chapter assumes you know how HTTP cookies work and have seen the two storage approaches from earlier chapters: a shared server-side store (for example Redis) and signed client-side tokens. Here we look at how a session ends, how its identifier changes, and how you cut it off early.4 min read
09Chapter 9: When the session store fails or slows downThis chapter assumes you know how a shared session store works (see the earlier chapter on keeping sessions in a shared store), how session cookies carry an ID, and what a load balancer does. Here you will look at what happens when the store is unavailable or slow, and how to design for it.4 min read
10Chapter 10: Other local state to move out of instancesThis chapter assumes you know how HTTP requests and cookies work, have built a web service, and understand what a load balancer does. You have already seen that session data should not live in one instance's memory. Sessions are only one kind of local state. Any data that one instance holds and othe3 min read
11Chapter 11: Choosing a strategy for your systemThis chapter assumes you know HTTP headers and cookies, have built a web service, and understand what a load balancer does. It also assumes you have read the earlier chapters on sticky sessions, a shared session store, signed tokens, session lifecycle and store failure modes. Here you put those piec4 min read