A solutions architect is designing a high-performance database tier for a real-time ride-sharing dispatch application. The application must ingest up to write operations per second to continuously record coordinate updates from active drivers. At the same time, the system must support high-frequency read queries to locate nearby drivers with sub-millisecond latency. The application workload is highly unpredictable, with sudden traffic surges occurring during rush hours.
Which combination of database configurations will meet these performance and scaling requirements? (Select two.)
- Configure the Amazon DynamoDB table with a partition key of driver_id to distribute the write throughput evenly across multiple physical partitions.Cevap
- Deploy Amazon DynamoDB Accelerator (DAX) to cache read requests for driver coordinates, reducing read latency to microseconds.Cevap
- CUse a partition key based on a monotonically increasing timestamp to maintain chronological ordering of location updates.
- DDeploy Amazon RDS for PostgreSQL and rely on Read Replicas to handle the high volume of write coordinates and serve as the automatic failover targets.
- ESet the Amazon DynamoDB table to Provisioned Capacity Mode with fixed read and write units to prevent latency increases during traffic surges.
Cevap
Configure the Amazon DynamoDB table with a partition key of driver_id to distribute write throughput, and deploy Amazon DynamoDB Accelerator (DAX) to cache read requests for driver coordinates.
Configuring the Amazon DynamoDB table with a high-cardinality partition key like driver ID ensures that writes are distributed evenly across physical partitions, avoiding hot partitions and write bottlenecks. Utilizing Amazon DynamoDB Accelerator (DAX) provides an in-memory cache that reduces read latencies for driver coordinates to the microsecond range, fulfilling the requirement for sub-millisecond reads.
Adım Adım Çözüm
Anahtar Kavram
Selecting and configuring high-performing databases to support high write throughput and sub-millisecond read latencies under unpredictable workloads.