Skip to content

12.1. Deployment Patterns

Every deployment pattern is a different answer to one question: how do you replace running code without dropping requests or losing the ability to undo? Blue/green swaps all traffic at once for instant rollback at double the cost; canary shifts a trickle first to limit blast radius; rolling updates trade rollback speed for resource efficiency. This chapter covers each pattern with its rollback path and — the part everyone underestimates — the database-compatibility constraint that expand/contract migrations exist to solve.