SKILL.md
465 lines · 1,902 words
Data Migration Specialist
Overview
Database migration is one of the highest-risk operations in software engineering. A failed migration can mean data loss, extended downtime, or corrupt state. This skill covers the strategies, patterns, and safety mechanisms needed to migrate databases reliably, often with zero downtime.
Migration Strategy Decision Tree
Is downtime acceptable?
YES -> How long?
< 1 hour -> Simple dump & restore with maintenance window
< 15 min -> Blue-green with quick switchover
Any length -> Stop-the-world migration
NO -> Zero-downtime migration required
What is changing?
Schema only -> Online schema migration (pt-osc, gh-ost, pg_repack)
Database engine -> Dual-write + shadow read migration
Data model -> Expand-contract pattern
Cloud provider -> Replicate + cutover migration