A connected vehicle manufacturer is launching a real-time performance analytics platform for a global endurance racing event. The platform must ingest telemetry data from vehicles streaming JSON payloads once per second, resulting in an aggregate write throughput of . During the starting lap of the race, the traffic pattern exhibits an instantaneous flash spike, rising from a baseline of to the peak load of within a window. The platform must ingest this telemetry with sub- latency, update real-time leaderboards, and archive all raw payloads for post-race batch analytics. Which three architectural actions should a Solutions Architect recommend to achieve the required performance and scalability under these conditions?
- Deploy a Network Load Balancer to distribute the incoming HTTPS traffic, as it scales to millions of requests per second instantly without pre-warming.Cevap
- Ingest the telemetry stream into an Amazon Kinesis Data Stream in provisioned mode with shards, using the Amazon Kinesis Producer Library on the ingestion targets to aggregate and batch writes.Cevap
- Maintain and update the real-time leaderboard statistics in Amazon ElastiCache for Redis configured with a replication group and Multi-AZ to support sub-millisecond query performance.Cevap
- DDeploy an Application Load Balancer and configure target tracking scaling policies based on request count per target, relying on the Application Load Balancer's native scaling to absorb the starting-lap traffic spike.
- EWrite incoming telemetry directly to an Amazon Aurora MySQL database cluster, and configure Aurora Auto Scaling to dynamically provision reader replicas to handle the initial write surge during the starting lap.
- FConfigure an Auto Scaling group for the EC2-based ingestion layer with a step scaling policy, reducing the scaling cooldown period to 15 seconds to allow continuous instance launches during the 30-second traffic burst.
Cevap
Deploy a Network Load Balancer to handle the sudden flash spike without pre-warming, ingest the stream into a provisioned Amazon Kinesis Data Stream with 5,000 shards using the Kinesis Producer Library, and maintain the real-time leaderboard in Amazon ElastiCache for Redis.
The correct architecture separates the load balancing, ingestion stream, and cache layers. A Network Load Balancer handles sudden, volatile spikes of millions of requests per second natively without requiring pre-warming. Scaling Kinesis Data Streams to 5,000 shards provides the necessary write capacity () at the streaming ingestion layer, and using the Kinesis Producer Library optimizes performance via client-side batching. Real-time leaderboard updates require high-performance, low-latency data structures, which are best accommodated by Amazon ElastiCache for Redis.
Adım Adım Çözüm
Anahtar Kavram
Handling rapid flash-traffic spikes at the ingestion layer using Network Load Balancers, scaling decoupled stream ingestion using Provisioned Kinesis shards, and leveraging in-memory databases for high-velocity real-time metrics.