Samhlacha comhsheasmhachta sainmhíníonn fóirithinte faoi cathain agus conas a bhíonn nuashonruithe sonraí infheicthe ar fud chóras dáilte — ó chomhsheasmhachta láidir (feiceann gach duine na sonraí is déanaí ar an toirt) go chomhsheasmhachta dosheasmhaigh (iomadú nuashonruithe thar am). Bainean an rogha páirt an tsiopa le bailíochtacht agus feidhmíochta.
Comhsheasmhachta láidir i gcomparáid le dosheasmhach
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)
