Sharding হল MongoDB-এর হরিজন্টাল স্কেলিং-এর পদ্ধতি — ডেটা একাধিক সার্ভার (shards)-এ বিতরণ করা যাতে ডেটাবেস একটি সার্ভার যা সামলাতে পারে তার চেয়ে বড় ডেটাসেট এবং থ্রুপুট পরিচালনা করতে পারে। এটি ডেটা একটি shard key-দ্বারা পার্টিশন করে, MongoDB queries সঠিক shards-এ রুট করে।
কেন shard করবেন: একটি সার্ভারের বাইরে scale করুন
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
