Please enable JavaScript.
Coggle requires JavaScript to display documents.
11.122. MyClothes.com - Coggle Diagram
11.122. MyClothes.com
Stateful webapp
Stickiness (session affinity)
Include all data in User Cookies
Stateless but http request heavier
Security risk
Cookie can be altered
Cookie must be validate and < 4KB
Server Session
Send data with session ID
ElastiCache store session ID and data
User from other AZ still get store data
or DynamoDB to store session data
Store user data in database (RDS)
MultiAZ
Multi AZ ELB
Multi AZ Auto Scaling Group
Multi AZ RDS
MultiAZ ElastiCache
Security groups
Open HTTP/HTTPS to 0.0.0.0/0
Restrict traffic to ElasticCache security group from EC2 security group
Restrict traffic to RDS security group from EC2 security group
Scaling Reads
RDS Master (Write)
RDS read replicas
Scaling Reads (Lazy loading)
Cache data in ElastiCache