Sharding MongoDB को horizontal scaling को विधि हो — डेटालाई धेरै सर्भरहरु (shards) मा वितरण गरी डेटाबेसले एकल सर्भरले सम्भाल्न सक्ने भन्दा बढी डेटासेट र throughput हल गर्न सक्षम बनाउँछ। यसले डेटालाई shard key द्वारा विभाजन गर्छ, MongoDB ले क्वेरीहरुलाई सही shards मा रुट गर्छ।
एक सर्भर बाहिर स्केल किन गर्ने
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
