A metropolitan transit authority is launching a digital boarding verification system across its entire rail network. The system processes QR code passenger scans from active turnstiles. During morning rush hour, boarding verification requests surge from a baseline of requests per second to a peak of requests per second within . The system must validate passenger ticket balances, update transit logs, and return boarding decisions with sub-millisecond database read response times to prevent passenger queues.
Which architecture scales to meet this sudden workload surge while maintaining performance and operational efficiency?
- Deploy a Network Load Balancer (NLB) to distribute the verification requests to an Amazon ECS service running on AWS Fargate. Store ticket and balance information in an Amazon Aurora PostgreSQL DB cluster. Configure Aurora Auto Scaling to dynamically scale the number of Aurora Replicas, and route the boarding validation read queries to the DB cluster's reader endpoint.Cevap
- BDeploy an Application Load Balancer (ALB) to distribute the verification requests to an Amazon ECS service running on AWS Fargate, relying on default ALB scaling during the rush-hour surge. Store ticket and balance information in an Amazon Aurora PostgreSQL DB cluster. Configure Aurora Auto Scaling to dynamically add Aurora Replicas, and route read queries to the DB cluster's reader endpoint.
- CDeploy a Network Load Balancer (NLB) to distribute the verification requests to an Amazon ECS service running on AWS Fargate. Store ticket and balance information in an Amazon RDS for PostgreSQL DB instance configured with a Multi-AZ deployment. Scale the database read throughput during peak hours by routing the boarding validation read queries to the standby DB instance.
- DDeploy an Application Load Balancer (ALB) to distribute the verification requests to an Amazon ECS service running on AWS Fargate, relying on default ALB scaling. Store ticket and balance information in an Amazon RDS for PostgreSQL DB instance in a Multi-AZ deployment, and configure the application to route validation read queries to the secondary standby instance during the rush-hour surge.
Cevap
Deploy a Network Load Balancer (NLB) to distribute the verification requests to an Amazon ECS service running on AWS Fargate. Store ticket and balance information in an Amazon Aurora PostgreSQL DB cluster. Configure Aurora Auto Scaling to dynamically scale the number of Aurora Replicas, and route the boarding validation read queries to the DB cluster's reader endpoint.
The correct architecture uses a Network Load Balancer (NLB) to handle the sudden, extreme traffic spike without requiring pre-warming, routing requests to Amazon ECS tasks. On the database tier, it stores data in Amazon Aurora PostgreSQL and uses Aurora Auto Scaling to dynamically provision read replicas, routing read traffic to the reader endpoint. This scales the read workload efficiently while maintaining low latency.
Adım Adım Çözüm
Anahtar Kavram
Handling sudden traffic bursts at the entry tier using Network Load Balancers (NLB) and scaling the database read capacity using Amazon Aurora Replicas behind a reader endpoint.
Tahmini Süre:3m 0s