A financial technology company is launching a new mobile app that provides real-time portfolio valuation updates to users. The application backend is deployed on Amazon EC2 instances inside an Auto Scaling group, fronted by an Application Load Balancer (ALB). The application queries an Amazon RDS for MySQL Multi-AZ database. The company expects the traffic to spike from requests per second to over requests per second within minutes at the market open every day. Users require near-instantaneous responses, and session state must be persisted across multiple Availability Zones to prevent data loss if an instance fails. Which combination of actions will ensure the application scales efficiently and maintains low latency during the morning traffic spikes?
- Request AWS Support to pre-warm the Application Load Balancer prior to the daily market open, deploy Amazon ElastiCache for Redis to store session state with replication, and configure RDS Read Replicas to offload read traffic from the primary database instance.Answer
- BRequest AWS Support to pre-warm the Application Load Balancer prior to the daily market open, deploy Amazon ElastiCache for Memcached with multi-AZ replication to manage session persistence, and configure RDS Read Replicas to offload read traffic from the primary database instance.
- CDepend on the Application Load Balancer's native scaling to handle the traffic spike, deploy Amazon ElastiCache for Redis to cache session states, and configure the application to route read queries to the standby database instance in the Multi-AZ deployment during peak hours.
- DRequest AWS Support to pre-warm the Application Load Balancer prior to the daily market open, deploy Amazon ElastiCache for Redis to store session state with replication, and configure the EC2 Auto Scaling group with a cooldown period of 15 seconds to ensure new instances are added rapidly during the spike.