Twelve-principle methodology for building modern SaaS applications that are portable, scalable, and deployable on cloud platforms.
The Twelve-Factor App is a 12-principle methodology for building modern SaaS applications. Published by Heroku in 2011, it remains the foundation of cloud native best practices.
Despite being over a decade old, the 12 factors remain relevant. Serverless and containers implement many of these principles by design.
| Factor | Principle | Modern implementation |
|---|---|---|
| III. Config | Environment variables | AWS SSM Parameter Store, Secrets Manager |
| V. Build, release, run | Separate stages | CI/CD pipelines, GitOps |
| VI. Processes | Stateless | Containers, Lambda |
| IX. Disposability | Fast startup | Health checks in Kubernetes, graceful shutdown |
| X. Dev/prod parity | Similar environments | DevContainers, Docker Compose |
| XI. Logs | Event streams | Structured logging, stdout → CloudWatch |
The 12 factors don't cover aspects that are essential today:
The twelve factors remain relevant as design principles for cloud-native applications. Environment-based configuration, stateless processes, logs as streams, and dev/prod parity are practices that prevent entire categories of operational problems.
Development approach leveraging cloud advantages: containers, microservices, immutable infrastructure, and declarative automation for scalable and resilient systems.
Set of technical and cultural practices that implement DevOps principles — from Infrastructure as Code to blameless post-mortems. The "how" behind the philosophy.