Stateful Web App: MyClothes.comΒΆ
- MyClothes.com allows people to buy clothes online.
- Theres a [[shopping cart]]
- Our [[website]] is having hundreds of users at the same time
- We need to [[scale]], maintain Horizontal scalability and keep our [[web application]] as [[stateless]] as possible
- Users should not lose their[[ shopping cart]]
- Users should have their details (address, etc) in a [[database]]
We can use [[Multi AZ]] setup with a [[Load Balancer]], Auto Scaling Group (ASG).
There are multiple ways to keep the sessions: - Use load Load Balancer stickiness - Introduce user cookies - Store session data into ElastiCache or DynamoDB - [[Stateless]] - [[Multi AZ]] - Can also be used for [[caching]] data from AWS RDS - Tighter security with Security Groups referencing each other