Hacker News new | ask | show | jobs
by sansnomme 2560 days ago
How do you do live migrations? Do you shard, then suspend existing queries, and finally redirect?
1 comments

We spin up a separate instance that matches the type that you want to migrate to, restore a backup and stream the WAL logs. Then, we redirect.
The good ol' event sourcing trick :D