A retail company is launching a new flash sale platform that expects an immediate and massive surge in traffic, going from to concurrent requests per second within less than 2 minutes. The architecture consists of a public-facing Application Load Balancer (ALB), an Amazon ECS cluster on AWS Fargate for the web tier, and an Amazon Aurora PostgreSQL database cluster for the transactional backend. The application profile is highly read-intensive during the sale. Which two options should a Solutions Architect recommend to optimize the performance and scalability of the platform under this sudden load?
- Request AWS Support to pre-warm the Application Load Balancer (ALB) to handle the anticipated surge of requests per second, and configure scheduled scaling for the Amazon ECS tasks to scale out prior to the start of the event.Cevap
- BRely on the Application Load Balancer (ALB) to scale dynamically using its default built-in capacity, and use Target Tracking scaling policies to scale out the Amazon ECS tasks once CPU utilization exceeds .
- Add Aurora Replicas to the Amazon Aurora PostgreSQL database cluster, configure Aurora Auto Scaling to scale the reader nodes dynamically, and configure the application to direct read queries to the Aurora reader endpoint.Cevap
- DConfigure the database using a standard Amazon RDS Multi-AZ deployment and configure the application to send read-heavy queries to the standby instance in the secondary Availability Zone to offload the primary writer.
- EDeploy Amazon ElastiCache for Memcached to cache query results, and configure Multi-AZ replication to ensure high availability and read-scaling of the cache nodes during the event.
Cevap
Request AWS Support to pre-warm the Application Load Balancer (ALB) with scheduled scaling for the ECS tasks, and deploy Aurora Replicas using Aurora Auto Scaling with read queries directed to the reader endpoint.
To survive an instantaneous surge in traffic, the entry point must be pre-warmed to ensure AWS has pre-provisioned sufficient ALB capacity. Correspondingly, Scheduled Auto Scaling must be used to ensure the ECS tasks are ready before the traffic starts. Database read scalability must be solved by routing queries to the Aurora reader endpoint, which distributes connections among dynamically scaled Aurora Replicas.
Adım Adım Çözüm
Anahtar Kavram
Architectures facing sudden, massive flash traffic must pre-allocate capacity at the load balancing and compute layers (pre-warming and scheduled scaling) and leverage horizontal scaling replica architectures at the database tier.