{"id":2946,"date":"2026-06-24T09:30:00","date_gmt":"2026-06-24T09:30:00","guid":{"rendered":"https:\/\/mugnos-it.com\/?p=2946"},"modified":"2026-06-19T13:44:25","modified_gmt":"2026-06-19T13:44:25","slug":"why-every-sre-should-know-the-12-factor-app","status":"publish","type":"post","link":"https:\/\/mugnos-it.com\/pt\/why-every-sre-should-know-the-12-factor-app\/","title":{"rendered":"Why Every SRE Should Know the 12-Factor App"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"2946\" class=\"elementor elementor-2946\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7c012f80 e-flex e-con-boxed e-con e-parent\" data-id=\"7c012f80\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-744c589c elementor-widget elementor-widget-text-editor\" data-id=\"744c589c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\n<p><\/p>\n\n\n\n<p>\ud83d\udc4b Hey,<\/p>\n\n\n\n<p>A few years ago, the basic practices and theories behind building a quality application weren&#8217;t easy to come by. You learned them the hard way: you&#8217;d hardcode a database connection straight into the code, ship it, and only discover during the outage that promoting it to another environment meant rebuilding the whole thing. Then the 12-Factor App put those lessons into words.<\/p>\n\n\n\n<p>It&#8217;s old, but as people say&#8230; &#8220;old but gold.&#8221; And honestly, I think every SRE should know it. These are items so simple, yet so rarely used and reviewed. And an SRE, precisely because they work with reliability, is the right person to materialize the twelve factors for almost any application with little effort \u2014 or, these days, with little more than a good prompt.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">What Is the Twelve-Factor App?<\/h3>\n\n\n\n<p>The Twelve-Factor App was created by Heroku as a set of best practices for building modern applications: portable, scalable, and ready to run well in cloud environments.<\/p>\n\n\n\n<p>It isn&#8217;t just a technical checklist. It&#8217;s a development and operations philosophy that helps teams build applications that are easier to configure, scale, observe, replace, and operate. The twelve factors are:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Codebase<\/li>\n\n\n\n<li>Dependencies<\/li>\n\n\n\n<li>Config<\/li>\n\n\n\n<li>Backing Services<\/li>\n\n\n\n<li>Build, Release, Run<\/li>\n\n\n\n<li>Processes<\/li>\n\n\n\n<li>Port Binding<\/li>\n\n\n\n<li>Concurrency<\/li>\n\n\n\n<li>Disposability<\/li>\n\n\n\n<li>Dev\/Prod Parity<\/li>\n\n\n\n<li>Logs<\/li>\n\n\n\n<li>Admin Processes<\/li>\n<\/ol>\n\n\n\n<p>You don&#8217;t need all twelve top of mind. But a handful of them map almost one-to-one onto the things an SRE cares about every day.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">SRE and the Config Factor<\/h3>\n\n\n\n<p>Every SRE should help application teams understand that software needs to run in different environments without changing the code.<\/p>\n\n\n\n<p>That&#8217;s exactly the idea behind the <strong>Config<\/strong> factor: separate configuration from code. The application should receive its configuration before startup \u2014 usually through environment variables, secrets, or config maps. With that in place, the same code runs in dev, staging, and production by changing only the external configuration.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">SRE, Dev\/Prod Parity and Build, Release, Run<\/h3>\n\n\n\n<p>This connects directly to <strong>Dev\/Prod Parity<\/strong> and <strong>Build, Release, Run<\/strong>.<\/p>\n\n\n\n<p>When config and backing services are well defined, it becomes much easier to keep environments alike. The difference between dev, stage, and production lives in the variables and connected resources, not in the code. That simplifies building, releasing, and running the application in any environment \u2014 in minutes, and with far less risk.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">SRE, Logs and Metrics<\/h3>\n\n\n\n<p>Another essential one for SRE is the <strong>Logs<\/strong> factor.<\/p>\n\n\n\n<p>Every application needs to produce logs that are clear, accessible, and ideally structured. Logs are fundamental for investigating problems, understanding application behavior, generating metrics, creating alerts, and improving observability. Without good logs and good metrics, the SRE is practically blind in production.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">SRE and Disposability<\/h3>\n\n\n\n<p>And of course, there&#8217;s <strong>Disposability<\/strong>.<\/p>\n\n\n\n<p>Modern applications need to start fast, shut down gracefully, and be easily replaced. To pull that off, they should avoid storing state locally and stay as stateless as possible. That makes restart, deploy, autoscaling, rollback, and failure recovery far simpler. For SRE, this is essential to keep applications simple, resilient, and easy to operate.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\n\n\n\n<p>In the end, the Twelve-Factor App is one more quality mechanism that connects directly to the essence of SRE.<\/p>\n\n\n\n<p>An SRE needs to know these factors to bring technical arguments into discussions with teams and influence good architecture and operations decisions. Many of these concepts seem simple, yet they&#8217;re still heavily neglected day to day \u2014 and when that happens, it&#8217;s the operation that pays for it later.<\/p>\n\n\n\n<p>So use the Twelve-Factor App, and other good practices, as technical ammunition to defend quality, reliability, observability, and resilience. If you work as an SRE and don&#8217;t yet know the Twelve-Factor App well, it&#8217;s well worth studying, understanding, and getting familiar with these factors.<\/p>\n\n\n\n<p>Which factor do you see broken most often, and which one has burned you worst? Reply and tell me. \ud83d\udd27<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>That&#8217;s what I had for today.<\/p>\n\n\n\n<p>See you next time \ud83d\udc4b<\/p>\n\n\n\n<p>Cheers,<\/p>\n\n\n\n<p>Douglas Mugnos<\/p>\n\n\n\n<p>MUGNOS-IT \ud83d\ude80<\/p>\n\n\n\n<p><\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-ce64874 e-flex e-con-boxed e-con e-parent\" data-id=\"ce64874\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>\ud83d\udc4b Hey, A few years ago, the basic practices and theories behind building a quality application weren&#8217;t easy to come by. You learned them the hard way: you&#8217;d hardcode a database connection straight into the code, ship it, and only discover during the outage that promoting it to another environment meant rebuilding the whole thing. [&hellip;]<\/p>","protected":false},"author":3,"featured_media":2947,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2946","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/mugnos-it.com\/wp-content\/uploads\/2026\/06\/ChatGPT-Image-16-de-jun.-de-2026-09_48_43.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mugnos-it.com\/pt\/wp-json\/wp\/v2\/posts\/2946","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mugnos-it.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mugnos-it.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mugnos-it.com\/pt\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mugnos-it.com\/pt\/wp-json\/wp\/v2\/comments?post=2946"}],"version-history":[{"count":4,"href":"https:\/\/mugnos-it.com\/pt\/wp-json\/wp\/v2\/posts\/2946\/revisions"}],"predecessor-version":[{"id":2951,"href":"https:\/\/mugnos-it.com\/pt\/wp-json\/wp\/v2\/posts\/2946\/revisions\/2951"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mugnos-it.com\/pt\/wp-json\/wp\/v2\/media\/2947"}],"wp:attachment":[{"href":"https:\/\/mugnos-it.com\/pt\/wp-json\/wp\/v2\/media?parent=2946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mugnos-it.com\/pt\/wp-json\/wp\/v2\/categories?post=2946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mugnos-it.com\/pt\/wp-json\/wp\/v2\/tags?post=2946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}