~/talk

Sharding Is Hard: Let's Make It Easier!

Talkat Rails World 2026 · 2026-09-23..09-24· [ruby-on-rails, databases]
slides:none on file

A multi‑clinic healthcare app splits a single Postgres into shards by choosing clinic ID as the shard key so visits and audit_logs live per clinic, reducing write hotspots; reads use replicas, writes stay local, and cross‑clinic tables like billing remain on the primary. Routing can be done in Rails (sharding since 6.1) with a stored shard map or pushed to a proxy like PG Dog, which supports resharding and two‑phase commit but still leaves cross‑shard joins slow and transactions non‑atomic.

AI-written summary · about

  1. 0:00The problem with scale
  2. 1:02Measuring and scaling
  3. 2:46Principles of sharding
  4. 4:21Defining the shard key
  5. 8:27Implementation strategies
  6. 11:35Migrating data
  7. 12:33Routing queries in Rails
  8. 18:12Joins and transactions
  9. 20:18The art of sharding
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.