Release engineering and CI/CD at scale
Build, test and deploy hundreds of services many times a day with fast pipelines and safe, automated rollouts.
15 min readWhy delivery speed and stability go together
Research behind the DORA metrics consistently finds that teams who deploy more often also have lower change failure rates and faster recovery. Small changes are easier to review, test and roll back; a release that bundles three weeks of work from ten people is hard to debug when it fails. The four DORA metrics are a useful scorecard for an organisation: deployment frequency, lead time from commit to production, change failure rate and time to restore service. Measure them per team and look at trends, not league tables.
Fast, reliable pipelines
If CI takes 45 minutes, engineers batch changes and context-switch, and the benefits of small releases disappear. Aim for under 10 minutes to a merge decision. At organisation scale CI is a shared platform with its own capacity planning: 2 000 repositories pushing a few times an hour each can mean thousands of concurrent jobs at peak, with a quiet night and weekend. That shape suits a job queue in front of autoscaled workers, artefact storage with lifecycle rules, and build logs streamed to developers live. Treat queue wait time as an SLI, because waiting for a worker is as frustrating as a slow test.
- Cache dependencies and build outputs; rebuild only what changed in a monorepo
- Run tests in parallel shards on autoscaled workers, ideally spot capacity
- Quarantine flaky tests automatically; a 1% flake rate across 300 tests fails about 95% of runs
- Build once, promote the same immutable artefact through every environment
Safe rollout strategies
A deploy should never go to all servers at once. A rolling deploy replaces instances in batches while health checks gate each step. Blue-green deploys run the new version beside the old one and switch traffic at the load balancer, giving instant rollback at the cost of double capacity during the switch. Canary releases send 1%, then 5%, 25% and 100% of traffic to the new version, comparing its error rate and latency against the old version at each step. Automate the comparison and the rollback: a human watching graphs is slower and less consistent.
Changes that are hard to roll back
Code rolls back in seconds; data does not. Use the expand and contract pattern for schema changes: add the new column, deploy code that writes both, backfill, switch reads, then remove the old column in a later release. Each step is backward compatible, so any single deploy can be rolled back. Treat configuration and infrastructure as code with the same review and rollout process, because configuration changes cause a large share of major outages. Global configuration in particular should roll out region by region, never everywhere at once.
Key takeaways
- Frequent small deploys are both faster and safer
- Keep CI under about 10 minutes with caching, sharding and flaky-test quarantine
- Canary with automated comparison and rollback beats manual monitoring
- Make schema changes backward compatible with expand and contract
Sign in to track lessons and earn badges.