Advanced Cloud-Native #12-factor #config #backing-services #disposability #dev-prod-parity

12-Factor App Vocabulary

5 exercises — master the precise English vocabulary of the 12-Factor App methodology: environment-based config, backing services, disposability and graceful shutdown, dev/prod parity gaps, and treating logs as event streams.

0 / 5 completed
12-Factor App vocabulary quick reference
  • Factor III: Config — everything that varies between environments belongs in env vars, never in code
  • Factor IV: Backing Services — DB, queue, SMTP are attached resources; swap them by changing a URL in config, not code
  • Factor VI: Processes — stateless, share-nothing; persist state in backing services (DB, cache)
  • Factor IX: Disposability — fast startup for scale-out; graceful SIGTERM shutdown for zero dropped requests
  • Factor X: Dev/Prod Parity — same backing services, short deploy cycles, dev = ops; close time, personnel, and backing service gaps
  • Factor XI: Logs — write to stdout only; let the platform capture, route, and store the stream
  • Factor XII: Admin Processes — one-off admin tasks (migrations, REPL) run in the same environment as the app, as one-off processes
1 / 5

Factor III: Config — The 12-Factor methodology states: "Config that varies between deploy environments must be stored in environment variables, not in the codebase."

Why does 12-Factor specifically mandate environment variables rather than config files committed to the repository?