Stateless Architecture
A stateful server retains client information (state) between requests. The problem is that the same server must receive all requests coming from the same client. Most load balancers include sticky sessions that may be used for this. But this increases the overhead. This method makes it considerably more difficult to add or remove servers. In addition, managing server failures is difficult.
When a user signs in to a stateless system, a token is returned to the client. The client’s storage is where this token is kept. Then, each request the user makes includes this token. We cross-reference…