~/talk

Build better apps using CRDTs

Talkat JavaScript fwdays’23 · 2023-05-16..05-20· [frontend-architecture, react]
links:none on file
slides:none on file

Claim: CRDTs make apps feel snappy, resilient and offline-first by turning fields into mergeable objects with metadata rather than overwrites. Implementation detail: use a last-writer-wins map with Lamport timestamps and client IDs so merges simply compare timestamps and pick the newer value, making operations commutative and idempotent. Tooling: example uses ygs and Hocus Pocus to sync shared types. Trade-offs: text CRDTs carry extra metadata (roughly 2–3x footprint in some cases), migrations and permission enforcement are harder, but hundreds of concurrent users are feasible.

AI-written summary · about

  1. 0:00Introduction to CRDTs
  2. 1:05Why CRDTs matter
  3. 4:39What are CRDTs
  4. 11:07Conflict resolution with CRDTs
  5. 17:53Yjs for JavaScript CRDTs
  6. 20:00Live demo: To-do app CRDTs
  7. 32:06CRDTs trade-offs
  8. 37:05Q&A
~/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.