Stateful vs Stateless β
Stateful Application β
- store user session in memory of application server
- drawbacks:
- it wonβt allow you to do horizontal scaling of application server
- Solution:
- store user session in seperate data storage like redis so application server doesnβt need to store any session in memory
Stateless Application β
- user session is not stored in application server memory