The pragmatic rules of thumb of the 12-factor app

29 Jan 2023 / Mihai Nueleanu

In principle, the 12-factor app is a methodology for building software-as-a-service (SaaS) apps that are optimized for the cloud. This methodology, first introduced by Heroku, defines a set of principles that developers should follow to ensure that their applications are easy to deploy, scale, and maintain.

Pragmatically speaking, these 12 principles are hard lessons learned through years of experience building and operating apps in the cloud by talented engineers. And they're damn good lessons.

They go as follows:

By following these principles, developers can maximize the chances that their applications will be easy to deploy, scale, and maintain. For example, by storing config in the environment and treating backing services as attached resources, developers can ensure that their applications will be portable and easy to run in different environments. Additionally, by strictly separating the build and run stages, developers can ensure that their applications will be easy to test and deploy.

If you chose not to pay attention to these principles, the only thing that will happen is that you'll come to the exact same conclusions by yourself, but you'll have to learn them the hard way. My advice is to just keep them in the back of your mind, and if you're ever in doubt, just come back and give them another glance - it'll likely save you loads of time and frustration.

Clap Claps



I'm Mihai, the founder of dotmethod - a software development company based in 🇩🇰 Copenhagen.

GitHub Resume Contact Uses