How do you handle "Eventual Consistency" in a system where a user expects immediate feedback?
Last updated
Acknowledge optimistically: update the UI immediately and show an explicit pending state (e.g. "payment being processed"). Reconcile if the backend rejects it.
Guarantee read-your-own-writes (route reads to the latest data or cache client-side). Push the final result via websocket, polling, or email.
Keep operations that truly need immediacy (e.g. balance checks before withdrawal) strongly consistent.