name: 12-factor-app
description: The Twelve-Factor App methodology for building scalable, maintainable cloud-native applications. Use when designing backend services, APIs, microservices, or any software-as-a-service application. Triggers on deployment patterns, configuration management, process architecture, logging, and infrastructure decisions.
Community Cloud-Native Applications Best Practices
Comprehensive methodology for building modern software-as-a-service applications that are portable, scalable, and maintainable. Contains 51 rules across 12 categories, covering the entire application lifecycle from codebase management to production operations.
When to Apply
Reference these guidelines when:
- Designing new backend services or APIs
- Containerizing applications for Kubernetes or Docker
- Setting up CI/CD pipelines
- Managing configuration across environments
- Implementing logging and monitoring
- Planning application scaling strategy
- Debugging deployment or environment issues
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|
| 1 | Codebase & Version Control | CRITICAL | code- |
| 2 | Dependencies | CRITICAL | dep- |
| 3 | Configuration | CRITICAL | config- |
| 4 | Backing Services | HIGH | svc- |
| 5 | Build, Release, Run | HIGH | build- |
| 6 | Processes & State | HIGH | proc- |
| 7 | Concurrency & Scaling | HIGH | scale- |
| 8 | Disposability | HIGH | disp- |
| 9 | Port Binding | MEDIUM | port- |
| 10 | Dev/Prod Parity | MEDIUM | parity- |
| 11 | Logging | MEDIUM | log- |
| 12 | Admin Processes | MEDIUM | admin- |
Quick Reference
1. Codebase & Version Control (CRITICAL)
2. Dependencies (CRITICAL)
3. Configuration (CRITICAL)
4. Backing Services (HIGH)
5. Build, Release, Run (HIGH)
6. Processes & State (HIGH)
7. Concurrency & Scaling (HIGH)
8. Disposability (HIGH)
9. Port Binding (MEDIUM)
10. Dev/Prod Parity (MEDIUM)
11. Logging (MEDIUM)
12. Admin Processes (MEDIUM)
How to Use
Read individual reference files for detailed explanations and code examples:
Reference Files