News for hackers. Stuff that matters.
Re:Ask HN: How do you roll back production? by pojzon on Sunday November 03, 2019 @05:28PM (#21437163)
How you take care of DB updates when using cannary deployments ? For example those which are not backwards compatible ?

Ps. Releases are about building new versions of code packages. Deployments about pushing them out to environments.

Re:Ask HN: How do you roll back production? by karka91 on Monday November 04, 2019 @04:59AM (#21440213)
This depends a lot on the databases used and flexibility of the code that's accessing the data. One method is to deploy in multiple stages and to use views. In pre-deploy you create a view with schema/data needed for the release. In deploy stage you roll-out the canary code. In post-deploy stage remove either the old data/schema on success or new data/schema on failure. It's quite an overhead to implement and maintain this process.
Re:Ask HN: How do you roll back production? by bpicolo on Sunday November 03, 2019 @06:37PM (#21437571)
Best way is to not write forwards / backwards incompatible database changes.