~/talk

Can I break this?: Writing resilient “save” methods

Talkat RailsConf 2021 · 2021-04-12..04-15· [databases]
links:none on file
slides:none on file

A concrete claim: improbable failures happen often enough to cost real money—one example is a job that charged a customer 12 times—so extract the persistence into a single save method and ask “can I break this.” Use ActiveRecord transactions and row locks to avoid partial writes, push side effects into a database-backed queue or outbox, and make async retries safe with an item potency key. The patterns produce a transactionally “green” save and prevent duplicate charges.

AI-written summary · about

  1. 0:00Start
  2. 5:20Errors Are Probabilities
  3. 9:17The Oak and the Reed
  4. 12:30Practice Problems
~/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.