தரவு பிভாજனம் (sharding) தரவை பல சேவையகங்கள்/தரவுத்தளங்களுக்கு பிரிக்கிறது, இதனால் ஒவ்வொன்றும் ஒரு உபசமூக்களை வைத்திருக்கும் — ஒரு சேவையகத்தைத் தாண்டிய தரவு மற்றும் சுமையின் கிடைமட்ட அளவிடுதலை செயல்படுத்துகிறது. பிவாজனம் செய்வது எப்படி (பிভாஜன விசை மற்றும் உத்தி) விமர்சனமாக உள்ளது.
பிவாஜனம்/शার्टिং் என்றால் என்ன
PARTITIONING / SHARDING → divide data into pieces (partitions/shards) across multiple
servers, each holding a SUBSET:
→ no single server holds (or is overwhelmed by) all the data
→ scales STORAGE and LOAD horizontally (each shard handles its portion)
→ enables handling data/throughput beyond one machine's capacity
பிவாஜன உத்திகள்
HASH-based → hash the partition key → assign to a shard:
✓ EVEN distribution (avoids hotspots) ✗ range queries hard; resharding is tricky
RANGE-based → partition by value ranges (e.g. A-M, N-Z; date ranges):
✓ efficient range queries ✗ risk of HOTSPOTS (uneven load if data/access is skewed)
DIRECTORY/lookup → a lookup table maps keys to shards (flexible, but the lookup is overhead)
GEOGRAPHIC → partition by region (data locality)
