সামঞ্জস্য মডেলগুলি একটি বিতরণকৃত সিস্টেম জুড়ে ডেটা আপডেটগুলি কখন এবং কীভাবে দৃশ্যমান হয় তার বিষয়ে গ্যারান্টি সংজ্ঞায়িত করে — শক্তিশালী সামঞ্জস্য (সবাই অবিলম্বে সর্বশেষ ডেটা দেখে) থেকে চূড়ান্ত সামঞ্জস্য (আপডেটগুলি সময়ের সাথে প্রচার করে) পর্যন্ত। পছন্দটি উপলব্ধতা এবং পারফরম্যান্সের সাথে ট্রেড-অফ জড়িত করে।
শক্তিশালী বনাম চূড়ান্ত সামঞ্জস্য
STRONG CONSISTENCY → every read returns the MOST RECENT write (all nodes agree immediately):
✓ simple to reason about; always correct/current data
✗ requires coordination → higher latency, lower availability (especially during partitions)
→ for: data that must be correct/current (financial balances, inventory, bookings)
EVENTUAL CONSISTENCY → updates propagate over time; reads MAY return stale data briefly,
but all nodes CONVERGE eventually:
✓ high availability, low latency, scalable
✗ reads can be stale temporarily (must tolerate this)
→ for: data where brief staleness is OK (social feeds, likes, view counts, caches)
