System Design · Junior · Question 10 of 75
What does it mean that HTTP is a stateless protocol?
- ✓Correct answer: Each request is independent; "memory" of the user is passed via a cookie or token
- 2The server can't store data in a database between users' requests
- 3The browser deletes all site data after the tab is closed
Explanation
The server doesn't remember previous requests by itself, so the session is sent with every request: a cookie with a session ID or a token in a header. Stateless servers are easy to scale - any instance can handle any request.