A financial media platform publishes quarterly earnings reports. During a major company's earnings release, traffic to the historical stock data service spikes from a baseline of requests per second to over requests per second within seconds. The application tier runs on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). The database tier currently uses an Amazon RDS for PostgreSQL Multi-AZ deployment. Which strategy should a solutions architect recommend to scale both the database read capacity and the load balancer to handle this sudden traffic surge?
- Migrate the database to Amazon Aurora PostgreSQL, configure Aurora Auto Scaling to dynamically provision Aurora Replicas to handle the read load, and request AWS Support to pre-warm the ALB prior to the scheduled earnings release.Answer
- BKeep the database on Amazon RDS for PostgreSQL, configure the Multi-AZ standby instance to serve read traffic during the peak window, and configure the EC2 Auto Scaling group to handle the ALB scaling automatically.
- CMigrate the database to Amazon Aurora PostgreSQL, configure the Multi-AZ standby replica to serve read traffic, and request AWS Support to pre-warm the ALB prior to the scheduled earnings release.
- DKeep the database on Amazon RDS for PostgreSQL, enable Aurora Auto Scaling for the RDS instance to dynamically scale read replicas, and rely on the ALB's default auto-scaling to absorb the sudden traffic surge.
Answer
Migrate the database to Amazon Aurora PostgreSQL, configure Aurora Auto Scaling to dynamically provision Aurora Replicas to handle the read load, and request AWS Support to pre-warm the ALB prior to the scheduled earnings release.
The correct strategy migrates the database to Amazon Aurora PostgreSQL, enabling dynamic write/read splitting and horizontal scaling through Aurora Auto Scaling replicas. It also addresses the sudden, extreme spike in front-end traffic by requesting ALB pre-warming, which ensures the load balancer has pre-allocated capacity ready to handle the immediate surge to requests per second without dropping packets.
Step-by-Step Solution
Key Concept
Scaling read capacity dynamically and handling sudden traffic spikes requires a combination of database read replicas and pre-warming load balancers.