Mifano ya utangamano inabainisha dhamana kuhusu wakati na jinsi sasisho la data linavyoonekana katika mfumo uliosambazwa — kuanzia utangamano wenye nguvu (kila mtu anaona data ya hivi karibuni mara moja) hadi utangamano wa mwisho (sasisho hueneza kwa muda). Chaguo hilo linahusisha uwezekano wa ubadilishanaji na upatikanaji na utendaji.
Utangamano wenye nguvu dhidi ya utangamano wa mwisho
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)
