DEV Community

Small Batches

12.1 Factor Apps: Config

The 12 factor app states that applications should read config from environment variables. It implies separation of code and config. That’s about it, but there’s good bones here. I want something bigger from this factor. Specifically that applications may be deployed to new environments without any code changes. This requires a few additions:

  1. Configure the process through command options and environment variables
  2. Prefer explicit configuration over implicit configuration 
  3. Use a dry run option to verify config sanity
  4. Fail fast on any configuration error

Mentioned in Show


Freebies
Resources
Books

Episode source