Complete the code to identify the component responsible for routing queries to the correct shard.
The [1] directs queries to the appropriate shard based on the shard key.The Query Router is responsible for directing queries to the correct shard using the shard key.
Complete the code to describe the step where data is aggregated from multiple shards.
After querying individual shards, the [1] combines the results into a single response.The Aggregator collects and merges results from multiple shards to form a unified response.
Fix the error in the description of cross-shard query latency.
Cross-shard queries often have higher latency due to [1] across shards.Network communication between shards adds latency in cross-shard queries.
Fill both blanks to complete the description of a common strategy to reduce cross-shard query overhead.
To reduce overhead, systems often [1] queries to shards and [2] results before sending to the client.
Parallelizing queries speeds up data fetching, and aggregating results reduces client processing.
Fill all three blanks to complete the explanation of handling consistency in cross-shard queries.
To maintain consistency, the system uses [1] to coordinate shards, [2] to lock data, and [3] to resolve conflicts.
Distributed transactions coordinate shards, two-phase commit locks data safely, and conflict resolution handles inconsistencies.