A global meteorological agency operates a severe weather monitoring platform that ingests telemetry from active IoT weather sensors. Under normal conditions, each sensor transmits data every . However, during sudden severe weather events, up to sensors in the affected regions immediately transition to high-frequency reporting, transmitting data every . The platform’s ingestion layer uses stateless web servers hosted on Amazon ECS tasks using the AWS Fargate launch type, positioned behind an Application Load Balancer (ALB). The persistence layer is an Amazon Aurora PostgreSQL DB cluster. During simulations of a sudden localized storm, the platform experiences severe request drops at the ingestion layer, and read latency for the real-time public dashboard increases exponentially. Which architectural strategy will optimize performance and ensure scalability during these unpredictable spikes?
- Replace the ALB with a Network Load Balancer (NLB) to handle the instantaneous surge of TCP connections without pre-warming. Deploy an Amazon ElastiCache for Redis cluster with Multi-AZ replication to cache dashboard query results. Configure Aurora Auto Scaling to dynamically provision Aurora Replicas to offload read queries from the primary DB instance.Cevap
- BKeep the ALB and request AWS Support to configure automatic pre-warming based on historical weather patterns. Deploy an Amazon ElastiCache for Memcached cluster to cache dashboard query results. Configure the primary Aurora instance to scale vertically during high-load periods by changing its instance class.
- CReplace the ALB with a Network Load Balancer (NLB). Enable RDS Multi-AZ replication on the database cluster, and configure the application to route dashboard read queries directly to the Multi-AZ standby replica to reduce load on the primary writer.
- DKeep the ALB and implement dynamic scaling policies for the ECS tasks. Deploy an Amazon ElastiCache for Redis cluster to cache dashboard queries. Configure Aurora Auto Scaling to add reader instances, setting the scale-in and scale-out cooldown periods to 30 seconds to quickly respond to the high-frequency sensor transitions.