Sharding என்பது MongoDB இன் கிடைமட்ட அளவிடல் முறை — பல சேவையகங்கள் (shards) முழுவதும் தரவை விநியோகித்து, தரவுசெட்கள் மற்றும் একক சேவையகத்திற்கு மேல் throughput ஐ தரவுமறை கையாளக்கூடியதாக்குகிறது. இது shard key மூலம் தரவை பிভாகிக்கிறது, MongoDB சரியான shards க்கு வினவல்களை வழிநடத்துகிறது.
ஏன் shard: ஒரு சேவையகத்தை தாண்டி அளவிடல்
A single server has limits (storage, RAM, write throughput). When data/load exceeds
what one server (even a powerful one) can handle, SHARDING distributes it:
→ data is split across multiple SHARDS (each a replica set)
→ each shard holds a SUBSET of the data → combined capacity scales horizontally
→ handles huge datasets and high write throughput
