Problem Statement
When a database grows too large, a single server cannot handle all the data or requests. Without a good way to split data, some servers get overloaded while others stay idle, causing slow responses and failures.
This diagram shows a client sending requests to a shard router, which uses the shard key to direct each request to the correct shard server holding the relevant data.
country_code which has only 5 unique values. What is the likely problem with this shard key?user_id % 10 as a shard key but notices uneven shard sizes. What is the likely cause?user_id and order_date. Which shard key choice best supports fast queries and balanced load?user_id and order_date -> Option APass the test and this pattern moves unknown