Why stateless services scale better and how to move state to Redis or a database.
Use this concept when designing systems that require the capabilities described above. Consider the trade-offs carefully against simpler alternatives before committing to the added complexity.