01Chapter 1: What a stateless service isThis chapter defines what "stateless" means for a web service, separates it from nearby ideas, and shows what breaks when a service is not stateless. Later chapters cover where session state can live instead.7 min read
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 or API in some language and know roughly what a load balancer does. The previous chapter defined a stateless service as one where any instance can handle any reques8 min read
03Chapter 3: Why statelessness helps scaling and deploysThis chapter assumes you know HTTP requests, responses, headers and cookies. It also assumes you have built a web service or API in some language, and that you know a load balancer sends incoming requests to one of several servers. The previous chapters defined a stateless service and what counts as7 min read
04Chapter 4: Sticky sessions and their limitsSticky sessions let you run several instances of an app that keeps session data in its own memory. The load balancer sends each client back to the same instance, so the data is still there. This chapter explains how that works, how to configure it, and where it fails. It assumes you know how HTTP co8 min read
05Chapter 5: Session identifiers and secure cookiesThis chapter covers how a browser and a server agree on who is making a request. It assumes you know the basics of HTTP requests, responses, headers and cookies. It also assumes you have built a web service or API in some language. You should know roughly what a load balancer does.9 min read
06Chapter 6: Keeping sessions in a shared storeThis chapter assumes you know how HTTP cookies work, have built a web service or API in some language, and know what a load balancer does. It also assumes you have read the earlier chapters on stateless services, session state and sticky sessions.7 min read
07Chapter 7: Keeping state in signed client-side tokensThis chapter assumes you know HTTP headers and cookies, have built a web service or API in some language, and know what a load balancer does. It also assumes you have seen the shared server-side session store from earlier in this tutorial. Here you will move the session data out of the servers and i7 min read
08Chapter 8: Expiry, rotation and revocationThis chapter covers how a session ends, how its identifier changes during its life, and how you cut it off early. It assumes you know HTTP cookies and headers, and that you have seen the two main designs from earlier chapters: a shared server-side store (such as Redis) and signed client-side tokens.7 min read
09Chapter 9: When the session store fails or slows downA shared session store removes state from your app instances, but it adds a dependency that every authenticated request must call. This chapter covers how that dependency fails and how to limit the damage.9 min read
10Chapter 10: Other local state to move out of instancesThis chapter assumes you know how HTTP requests and cookies work, you have built a web service or API, and you know what a load balancer does. You have already seen how sessions can move out of instance memory. Sessions are only one kind of instance-local state. This chapter covers the others, how t8 min read
11Chapter 11: Choosing a strategy for your systemThis chapter pulls the earlier material together into a decision. It assumes you know HTTP headers and cookies, have built a web service, and understand what a load balancer does. It also assumes you have seen the three places to keep session state: sticky sessions, a shared server-side store, and s9 min read