A short text that became common vocabulary in interviews and architecture reviews. The 12 factors range from one codebase with many deploys to running admin tasks as one-off processes. Written from experience on the Heroku platform, it applies to any container or PaaS.
The factors that bite most in practice: config in the environment (no passwords in the repo), stateless processes (sessions and uploads do not live on the container disk), disposability (the app starts fast and shuts down cleanly on SIGTERM) and logs to stdout, leaving collection to the platform. The trap: the main text dates from 2017 and says nothing about managed secrets or modern observability. An updated version is being written in the open on GitHub, under CC BY 4.0.
Use it as a checklist before shipping a new service, together with microservices.io.