~/talk

Optimistic updates in a pessimistic world

Talkat ReactiveConf 2016 · on Thursday, 2016-10-27· [frontend-architecture, web3]
slides:none on file

Concrete claim: implement optimistic updates by keeping optimistic state separate, logging transactions, and reconciling with a server-side state so rollbacks affect only the failing transaction. Uses DataScript style immutable in-memory DB, shows tradeoffs of temporary IDs versus client-generated IDs (use crypto API for secure randomness), and recommends a front-end request queue and batch payloads to avoid cascading failures. Demonstrated with the open‑sourced Precursor prototype: live optimistic edits, undo/replay, multiplayer syncing, offline retrying, and it works in practice.

AI-written summary · about

  1. 0:00Intro
  2. 1:25Definition
  3. 4:50Properties
  4. 5:38RealA
  5. 6:34Datascript
  6. 9:24Predicting IDs
  7. 9:48Temporary IDs
  8. 12:30Concurrent updates
  9. 13:18Main points
  10. 19:32Precursor
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.