Re:The architecture behind a one-person tech startup
by slt2021 on Thursday April 08, 2021 @02:21PM
(#26742025)
I wonder what happens during blue green or canary deployment?
if your migration changes database schema in a way that affect previous version negatively?
is it even possible to do blue/green deploy if your schema changes radically?
Re:The architecture behind a one-person tech startup
by rkwz on Thursday April 08, 2021 @08:13PM
(#26745356)
It's definitely possible but we need to spend sometime to make sure the changes are backwards compatible and gradually rollout the destructive change.
Here's a really good guide on how to do this - https://docs.gitlab.com/ee/development/avoiding_downtime_in_...
Here are some migration libraries:
Go - https://github.com/golang-migrate/migrate
Node - https://github.com/salsita/node-pg-migrate