A company is preparing to launch a new limited-time promotional campaign that is expected to generate an immediate surge of traffic, going from requests per second to over requests per second within less than a minute. The application is deployed on Amazon ECS Fargate behind an Application Load Balancer (ALB) and uses an Amazon Aurora PostgreSQL database. The application performs read-heavy catalog lookups and write-heavy transaction processing. Which two actions should the Solutions Architect recommend to optimize the performance and scalability of the architecture to handle the peak load?
- Submit a support case to AWS to pre-warm the Application Load Balancer (ALB) based on the expected traffic spike of requests per second.Cevap
- Deploy Aurora Replicas in the DB cluster and configure the application to route read-heavy catalog lookups to the Aurora reader endpoint.Cevap
- CRely on the Application Load Balancer's automatic scaling capability, which handles instant traffic surges of any volume dynamically.
- DDirect the read-heavy catalog lookup queries to the Amazon Aurora Multi-AZ standby instance to offload the primary database instance.
- EDeploy an Amazon ElastiCache for Memcached cluster with multi-AZ replication to cache catalog data and provide replication failover.
Cevap
Pre-warm the Application Load Balancer (ALB) via AWS Support and deploy Aurora Replicas while directing read queries to the reader endpoint.
Pre-warming the ALB ensures that AWS pre-allocates the necessary network and compute resources to handle the rapid traffic increase, preventing dropped connections. Using Aurora Replicas and directing queries to the reader endpoint scales read operations horizontally and prevents database resource exhaustion during peak volumes.
Adım Adım Çözüm
Anahtar Kavram
Handling sudden high-scale traffic spikes on AWS requires pre-provisioning capacity (pre-warming) at the load balancing tier and horizontally scaling the database tier using read replicas rather than relying on standby instances.