Un aggiornamento ottimistico aggiorna l'interfaccia immediatamente, presumendo che una richiesta al server avrà successo, invece di aspettare la risposta. Questo rende l'app istantanea — ma devi gestire il caso in cui la richiesta fallisca effettivamente eseguendo un rollback.
Il contrasto
Pessimistic (normal): click → show spinner → wait for server → THEN update UI (feels slow)
Optimistic: click → update UI INSTANTLY → send request →
if it fails, ROLL BACK the change (feels instant)
