~/talk

Data corrupting architectures we know and love

Talkat ScaleConf Colombia 2019 · 2019-05-17..05-18· [distributed-systems, databases]
slides:none on file

Common web scaling patterns let concurrent read-add-write race access a shared database counter and produce lost updates so a three-request scenario ends with two or even one instead of three because of last-write-wins behavior. Fixes shown include in-database transactions or stored procedures, distributed transactions or consensus (Paxos/Raft), locks or actor-style synchronization, event sourcing/CQRS and conflict-free replicated data types like CRDTs. Prefer sending increment operations rather than writing absolute values.

AI-written summary · about

  1. 0:00Intro
  2. 2:11GENERALIZATIONS AHEAD
  3. 2:45OUR MOST POPULAR ARCHITECTURES CAN BE TRACED TO WEB APPPLICATIONS.
  4. 4:19OUR SIMPLE WEB APP IS A DISTRIBUTED SYSTEM
  5. 4:37DISTRIBUTED SYSTEMS AREN'T HARD. THEY'RE EASY
  6. 5:27SOME JUSTIFICATION AHEAD
  7. 7:46SPOT THE DATA CORRUPTION?
  8. 10:45WE'RE EXPERIENCING A DATA RACE
  9. 11:20OUR DATABASE IS A SHARED VALUE
  10. 11:48WHOLE LOTTA WRITING GOING ON
  11. 16:53LAST WRITE WINS IS A FANCY NAME FOR "LET'S CORRUPT SOME DATA".
  12. 17:47OUR MOST POPULAR ARCHITECTURES FOR SCALING
  13. 18:21FUNCTIONS AS SERVICE
  14. 19:58ALL FEATURE DATABASE AS A SHARED VALUE AND CONCURRENT WRITES
  15. 20:13ALL HAVE DATA CORRUPTION BAKED INTO THE CORE ARCHITECTURE
  16. 23:06STORED PROCEDURES AND TRANSACTIONS
  17. 23:35DISTRIBUTED TRANSACTIONS
  18. 23:51SYNCHRONIZE DATA ACCESS
  19. 25:02CONSENSUS ALGORITHMS
  20. 25:23CONCURRENCY FRIENDLY DATA STRUCTURES
  21. 25:51COMMUNICATE OPERATIONS NOT VALUES
~/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.