{"id":633,"date":"2018-10-19T02:35:37","date_gmt":"2018-10-19T02:35:37","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw93\/?p=633"},"modified":"2018-10-20T22:46:50","modified_gmt":"2018-10-20T22:46:50","slug":"principles-of-container-based-application-design","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw93\/index.php\/2018\/10\/19\/principles-of-container-based-application-design\/","title":{"rendered":"Principles of Container-based Application Design"},"content":{"rendered":"<p>Today, almost all applications can run in containers. But creating a cloud-native application that automates the operation and management of containerized applications through a cloud-native platform such as Kubernetes requires extra work.<br \/>\nCloud native applications need to consider failures; even when the underlying architecture fails, it needs to run reliably.<br \/>\nTo provide such functionality, a cloud-native platform like Kubernetes needs to impose some contracts and constraints on running applications.<br \/>\nThese contracts ensure that applications can run under certain constraints, allowing the platform to automate application management.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"https:\/\/lh5.googleusercontent.com\/1XqojkVC0CET1yKCJqZ3-0VWxJ3W8Q74zPLlqnn6eHSJsjHOiBTB7EGUX5o_BOKumgfkxVdgBeLyoyMfMIXwVm9p2QXkq_RRy2mDJG1qEExJDculYL5PciYcWfPAKxF2-DGIdiLw\" alt=\"\" width=\"791\" height=\"390\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>| Container Design Principles |<\/p>\n<p>The seven principles described here relate to both the build time and the runtime, two types of concerns.<\/p>\n<p>Build time<br \/>\n1) Single focus: Each container only addresses one point of interest and is done very well.<br \/>\n2) Self-contained: A container only relies on the Linux kernel. Additional library requirements can be added when building the container.<br \/>\n3) Mirror invariance: Containerized applications mean invariance, and once the build is complete, there is no need to rebuild from the environment.<br \/>\nRuntime<br \/>\n4) Highly observable: Each container must implement all the necessary APIs to help the platform observe and manage the application in the best possible way.<br \/>\n5) Lifecycle consistency: A container must be able to get event information from the platform and react accordingly.<br \/>\n6) Process tractability: The life of a containerized application must be as short as possible so that it can be replaced by another container at any time.<br \/>\n7) Runtime Restrictions: Each container must declare its own resource requirements and limit resource usage to the required range.<\/p>\n<p><a href=\"https:\/\/kubernetes.io\/blog\/2018\/03\/principles-of-container-app-design\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, almost all applications can run in containers. But creating a cloud-native application that automates the operation and management of containerized applications through a cloud-native platform such as Kubernetes requires extra work. Cloud native applications need to consider failures; even when the underlying architecture fails, it needs to run reliably. To provide such functionality, a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw93\/index.php\/2018\/10\/19\/principles-of-container-based-application-design\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Principles of Container-based Application Design&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-633","post","type-post","status-publish","format-standard","hentry","category-kubernetes"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts\/633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/comments?post=633"}],"version-history":[{"count":4,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts\/633\/revisions"}],"predecessor-version":[{"id":655,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts\/633\/revisions\/655"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/media?parent=633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/categories?post=633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/tags?post=633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}