{"id":1641,"date":"2024-12-04T14:12:23","date_gmt":"2024-12-04T06:12:23","guid":{"rendered":"https:\/\/www.fanyamin.com\/wordpress\/?p=1641"},"modified":"2024-12-04T15:35:31","modified_gmt":"2024-12-04T07:35:31","slug":"the-new-and-revised-15-factors","status":"publish","type":"post","link":"https:\/\/www.fanyamin.com\/wordpress\/?p=1641","title":{"rendered":"The new and revised 15 factors"},"content":{"rendered":"<h2>12 factor<\/h2>\n<p>In the modern era, software is commonly delivered as a service: called web apps, or software-as-a-service. The twelve-factor app is a methodology for building software-as-a-service apps that:<\/p>\n<ul>\n<li>Use declarative formats for setup automation, to minimize time and cost for new developers joining the project;<\/li>\n<li>Have a clean contract with the underlying operating system, offering maximum portability between execution environments;<\/li>\n<li>Are suitable for deployment on modern cloud platforms, obviating the need for servers and systems administration;<\/li>\n<li>Minimize divergence between development and production, enabling continuous deployment for maximum agility;<\/li>\n<li>And can scale up without significant changes to tooling, architecture, or development practices.<br \/>\nThe twelve-factor methodology can be applied to apps written in any programming language, and which use any combination of backing services (database, queue, memory cache, etc).<\/li>\n<\/ul>\n<p>\u5341\u4e8c\u8981\u7d20\u5e94\u7528\u7a0b\u5e8f\u662f\u4e00\u79cd\u6784\u5efa\u8f6f\u4ef6\u5373\u670d\u52a1\u5e94\u7528\u7a0b\u5e8f\u7684\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528\u58f0\u660e\u6027\u683c\u5f0f\u8fdb\u884c\u8bbe\u7f6e\u81ea\u52a8\u5316\uff0c\u4ee5\u6700\u5927\u9650\u5ea6\u5730\u51cf\u5c11\u65b0\u5f00\u53d1\u4eba\u5458\u52a0\u5165\u9879\u76ee\u7684\u65f6\u95f4\u548c\u6210\u672c\uff1b<\/li>\n<li>\u4e0e\u5e95\u5c42\u64cd\u4f5c\u7cfb\u7edf\u6709\u6e05\u6670\u7684\u5951\u7ea6\uff0c\u5728\u6267\u884c\u73af\u5883\u4e4b\u95f4\u63d0\u4f9b\u6700\u5927\u7684\u53ef\u79fb\u690d\u6027\uff1b<\/li>\n<li>\u9002\u5408\u90e8\u7f72\u5728\u73b0\u4ee3\u4e91\u5e73\u53f0\u4e0a\uff0c\u65e0\u9700\u670d\u52a1\u5668\u548c\u7cfb\u7edf\u7ba1\u7406\uff1b<\/li>\n<li>\u6700\u5927\u9650\u5ea6\u5730\u51cf\u5c11\u5f00\u53d1\u548c\u751f\u4ea7\u4e4b\u95f4\u7684\u5dee\u5f02\uff0c\u5b9e\u73b0\u6301\u7eed\u90e8\u7f72\u4ee5\u5b9e\u73b0\u6700\u5927\u7075\u6d3b\u6027\uff1b<\/li>\n<li>\u5e76\u4e14\u53ef\u4ee5\u5728\u4e0d\u5bf9\u5de5\u5177\u3001\u67b6\u6784\u6216\u5f00\u53d1\u5b9e\u8df5\u8fdb\u884c\u91cd\u5927\u66f4\u6539\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u6269\u5c55\u3002<\/li>\n<\/ul>\n<p>\u5341\u4e8c\u56e0\u7d20\u65b9\u6cd5\u53ef\u5e94\u7528\u4e8e\u7528\u4efb\u4f55\u7f16\u7a0b\u8bed\u8a00\u7f16\u5199\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u4f7f\u7528\u4efb\u4f55\u7ec4\u5408\u7684\u652f\u6301\u670d\u52a1\uff08\u6570\u636e\u5e93\u3001\u961f\u5217\u3001\u5185\u5b58\u7f13\u5b58\u7b49\uff09<\/p>\n<ul>\n<li>\n<ol>\n<li>Codebase<br \/>\nOne codebase tracked in revision control, many deploys<\/li>\n<\/ol>\n<\/li>\n<li>\n<ol start=\"2\">\n<li>Dependencies<br \/>\nExplicitly declare and isolate dependencies<\/li>\n<\/ol>\n<\/li>\n<li>\n<ol start=\"3\">\n<li>Config<br \/>\nStore config in the environment<\/li>\n<\/ol>\n<\/li>\n<li>\n<ol start=\"4\">\n<li>Backing services<br \/>\nTreat backing services as attached resources<\/li>\n<\/ol>\n<\/li>\n<li>\n<ol start=\"5\">\n<li>Build, release, run<br \/>\nStrictly separate build and run stages<\/li>\n<\/ol>\n<\/li>\n<li>\n<ol start=\"6\">\n<li>Processes<br \/>\nExecute the app as one or more stateless processes<\/li>\n<\/ol>\n<\/li>\n<li>\n<ol start=\"7\">\n<li>Port binding<br \/>\nExport services via port binding<\/li>\n<\/ol>\n<\/li>\n<li>\n<ol start=\"8\">\n<li>Concurrency<br \/>\nScale out via the process model<\/li>\n<\/ol>\n<\/li>\n<li>\n<ol start=\"9\">\n<li>Disposability<br \/>\nMaximize robustness with fast startup and graceful shutdown<\/li>\n<\/ol>\n<\/li>\n<li>\n<ol start=\"10\">\n<li>Dev\/prod parity<br \/>\nKeep development, staging, and production as similar as possible<\/li>\n<\/ol>\n<\/li>\n<li>\n<ol start=\"11\">\n<li>Logs<br \/>\nTreat logs as event streams<\/li>\n<\/ol>\n<\/li>\n<li>\n<ol start=\"12\">\n<li>Admin processes<br \/>\nRun admin\/management tasks as one-off processes<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<h2>15 factor<\/h2>\n<ol>\n<li>One codebase, one application<\/li>\n<li><strong>API first<\/strong><\/li>\n<li>Dependency management<\/li>\n<li>Design, build, release, and run<\/li>\n<li>Configuration, credentials, and code<\/li>\n<li>Logs<\/li>\n<li>Disposability<\/li>\n<li>Backing services<\/li>\n<li>Environment parity<\/li>\n<\/ol>\n<p>\u4fdd\u6301\u6240\u6709\u73af\u5883\u5c3d\u53ef\u80fd\u76f8\u4f3c<\/p>\n<ol start=\"10\">\n<li>Administrative processes<\/li>\n<li>Port binding<\/li>\n<\/ol>\n<p>\u5e94\u7528\u662f\u81ea\u5305\u542b\u7684, \u5e76\u901a\u8fc7\u7aef\u53e3\u7ed1\u5b9a\u7684\u65b9\u5f0f\u5bfc\u51fa\u670d\u52a1<\/p>\n<ol start=\"12\">\n<li>Stateless processes<\/li>\n<li>Concurrency<\/li>\n<li><strong>Telemetry<\/strong><\/li>\n<li><strong>Authentication and authorization<\/strong><\/li>\n<\/ol>\n<hr \/>\n<h2>Reference<\/h2>\n<ul>\n<li><a href=\"https:\/\/12factor.net\/\">https:\/\/12factor.net\/<\/a><\/li>\n<li><a href=\"https:\/\/developer.ibm.com\/articles\/15-factor-applications\/\">https:\/\/developer.ibm.com\/articles\/15-factor-applications\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>12 factor In the modern era, software is commonly delivered as a service: called web apps, or software-as-a-service. The twelve-factor app is a methodology for building software-as-a-service apps that: Use declarative formats for setup automation, to minimize time and cost for new developers joining the project; Have a clean contract with the underlying operating system, [&hellip;] <a class=\"read-more\" href=\"https:\/\/www.fanyamin.com\/wordpress\/?p=1641\" title=\"Permanent Link to: The new and revised 15 factors\">&rarr;Read&nbsp;more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1641","post","type-post","status-publish","format-standard","hentry","category-5"],"_links":{"self":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1641"}],"collection":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1641"}],"version-history":[{"count":2,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1641\/revisions"}],"predecessor-version":[{"id":1643,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1641\/revisions\/1643"}],"wp:attachment":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}