A gaming company is launching a multiplayer mobile game. The game includes a daily leaderboard challenge that ends at exactly UTC. For a -minute window immediately following the event's end, active user traffic increases from a baseline of requests per second to requests per second as players check their final rankings. The application is hosted on Amazon ECS tasks running on AWS Fargate behind an Application Load Balancer (ALB), with an Amazon Aurora MySQL database cluster storing player scores. Which two actions should the solutions architect take to ensure the application scales efficiently and handles the sudden traffic spike without dropping requests?
- Submit a support case to AWS to pre-warm the Application Load Balancer to the expected peak of requests per second.Cevap
- Configure Scheduled Scaling for the Amazon ECS service and pre-provision Amazon Aurora Replicas to scale out resources before UTC.Cevap
- CRely on the Application Load Balancer's automatic scaling and configure ECS Service Auto Scaling with target tracking policies to scale out container instances dynamically as the spike occurs.
- DEnable Amazon RDS Multi-AZ on the database cluster and configure the application to redirect read traffic to the standby DB instance during the peak window.
- EDeploy an Amazon ElastiCache for Memcached cluster to cache the leaderboard data, configuring multi-AZ replication to ensure high availability for the read cache during the peak window.
Cevap
Submit a support case to AWS to pre-warm the Application Load Balancer, and configure Scheduled Scaling for the Amazon ECS service along with pre-provisioning Amazon Aurora Replicas before the daily peak event.
For predictable daily spikes that scale up instantly, reactive target tracking scaling is ineffective. Pre-warming the Application Load Balancer ensures that AWS provisions the underlying resources necessary to route the requests per second without dropping packets. Simultaneously, using Scheduled Scaling on ECS and pre-provisioning Aurora Replicas guarantees that the compute and database tiers are fully scaled out before the traffic arrives at UTC.
Adım Adım Çözüm
Anahtar Kavram
Handling predictable flash traffic requires proactive resource scheduling and pre-warming of edge/load balancing services, rather than relying on reactive auto-scaling policies.