~/talk

Zero Downtime Database Migrations and Deployments

slides:none on file

Claims a live ecommerce stack with 300,000 daily visitors and deploy 10–30 times a day, using decoupled, backward‑compatible migrations: add new column, deploy code that writes it, batch-fill historic rows, then make it non‑NULL; remove columns by making them optional, stop using them, then drop. Uses atomic blue/green releases via per‑release directories and a symlink swap, optional PHP‑FPM pools to warm opcache, and advises logging HTTP 502/504 and prepopulating caches to avoid post‑deploy storms.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04The case for frequent releases
  3. 6:42Dangers of maintenance modes
  4. 8:00Decoupling DB and code
  5. 8:55Database migration strategies
  6. 14:06Managing concurrent changes
  7. 15:42Advanced schema refactoring
  8. 17:29Creating and extending tables
  9. 19:37Non-database service updates
  10. 22:27Automated atomic deployment
  11. 25:00Blue-green deployment basics
  12. 27:06Handling PHP-FPM and cache
  13. 29:46Cache warming and management
  14. 32:31Logging and conclusion
~/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.