~/talk

Beyond CRUD: the PostgreSQL techniques your Rails app is missing.

Talkat RailsConf 2023 · 2023-04-24..04-26· [databases, ruby-on-rails]
links:none on file
slides:none on file

A production outage drops hourly jobs when redis schedules temporarily vanish and a race crashes the scheduler; the fix moves dynamic schedules into Postgres as the source of truth, uses optimistic concurrency control to get at‑most‑once delivery, applies skip_locked updates to cut P99 lock time from 1.5s to ~100ms, and employs advisory locks for coordinated work. Timeouts, connection-retry patches and a small PG adapter gem round out the changes and the rollout succeeds to all customers.

AI-written summary · about

  1. 0:00Start
  2. 2:49Overview
  3. 8:18Scheduling an Action
  4. 15:49Back to first principles
  5. 17:24New Scheduler System
  6. 29:21Timeouts, Reconnects and Retries
~/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.