A retail platform is launching a high-profile limited-edition sneaker release. Traffic is projected to jump instantly from requests per second to over requests per second within 60 seconds of the launch. The platform architecture consists of an Application Load Balancer (ALB) routing traffic to an Auto Scaling group of Amazon EC2 instances. The database tier is an Amazon RDS for PostgreSQL Multi-AZ DB instance. The primary performance bottleneck during the launch is retrieving product availability status. Which configuration should the Solutions Architect implement to scale the system and maintain low latency during the launch?
- Submit a request to AWS Support to pre-warm the Application Load Balancer to the expected throughput, and implement Amazon ElastiCache for Redis to cache and serve the product availability queries.Answer
- BConfigure the Application Load Balancer with target tracking scaling policies to handle the traffic surge, and deploy Amazon RDS Read Replicas to offload product availability queries from the primary DB instance.
- CSubmit a request to AWS Support to pre-warm the Application Load Balancer to the expected throughput, and configure the application to direct product availability read queries to the RDS standby DB instance in the secondary Availability Zone.
- DSubmit a request to AWS Support to pre-warm the Application Load Balancer to the expected throughput, and deploy an Amazon ElastiCache for Memcached cluster with Multi-AZ replication enabled to cache product availability queries.
Answer
Request AWS Support to pre-warm the Application Load Balancer to the expected capacity, and cache product availability queries using Amazon ElastiCache for Redis.
The correct answer combines requesting ELB pre-warming from AWS Support with deploying Amazon ElastiCache for Redis. Pre-warming is required because standard ALB scaling cannot keep up with an instantaneous jump from to requests per second. ElastiCache for Redis successfully offloads the product availability queries from the RDS DB instance, providing high availability through Multi-AZ replication and sub-millisecond query response times.
Step-by-Step Solution
Key Concept
Handling sudden flash traffic surges requires pre-warming the load balancer and offloading read traffic from the primary database using an appropriate caching layer like Amazon ElastiCache for Redis.