~/talk

How shit works: Time|

Talkat Øredev 2019 · 2019-11-06..11-08· [databases]
slides:none on file

A website-builder called Wix Adi uses event sourcing and a relational DB but finds persisted events arrive out of order; system timestamps prove unreliable (OS resolution ~100 ns, NTP accuracy cited ~10 ms, crystal drift hundreds of µs). The concrete fix is to stop keying on time, add a version column as a composite primary key, let the DB enforce serialization (primary-key violations reveal races) and handle conflicts by retry, reject, or merge. Lamport timestamps and vector clocks are noted for multi-node cases.

AI-written summary · about

  1. 0:00Introduction
  2. 0:50Adis dream
  3. 3:18Traditional RDBMS
  4. 4:25Corrupted data
  5. 5:50pathological situations
  6. 6:43how shit works
  7. 7:32what is time
  8. 8:07Encoding
  9. 8:35Timestamps
  10. 12:48The 80s
  11. 13:30Battery backups
  12. 14:36System Clock
  13. 15:28Clock Drift
  14. 17:37Distributive Time
  15. 18:36Clock Cues
  16. 19:22Network Time Protocol
  17. 19:42NTP Accuracy
  18. 21:49Push comes to shove
  19. 22:00Datastore time stamps
  20. 22:31Not good enough
  21. 22:43TLDR version
  22. 24:21Timestamps dont matter
  23. 25:35Two types of relationships
  24. 27:38What we need
  25. 29:18What we can do
  26. 31:24Write atomically
  27. 33:04Primary key violation
  28. 39:01Bonus
  29. 39:36Summary
~/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.