The Twelve-Factor App (2025)(12factor.net)
311 points by jxmorris12 13 days ago | 170 comments
tl;dr: The Twelve-Factor App is a methodology for building SaaS applications that are portable, scalable, and suitable for cloud deployment, originally synthesized from Heroku's experience with thousands of apps. The twelve factors cover practices like using a single codebase with many deploys, explicit dependency declaration, storing config in environment variables, treating backing services as attached resources, separating build/release/run stages, running stateless processes, and treating logs as event streams. The 2025 revision maintains the language-agnostic principles aimed at minimizing dev/prod divergence and enabling continuous deployment.
HN Discussion:
  • ~Methodology remains highly relevant and valuable reading, though config-in-environment advice is flawed
  • Nostalgia for Heroku's simpler approach that these principles represented
  • Principles are sound but modern team structures lack generalists to champion them
  • The methodology punts on state management, which is a significant limitation
  • ~Dev/prod parity factor is debatable and may be overreaching depending on interpretation