官术网_书友最值得收藏!

Contrasting containers and VMs

You might recall our short introduction of containers, and Kubernetes, at the start of the previous chapter. We had given the example of a simple web application, with a web app upfront and a database out back. We could start with these hosted on VM instances—but then, as the web app got complicated, we'd likely decompose the code into separate services. This move from a monolithic architecture to a service-oriented one, and finally, perhaps even to one based on microservices, is quite typical of the evolution of such app architectures.

The dependencies between these services would quickly get complicated to manage and, to simplify things, we'd probably decompose the services to rest on separate VMs. Then, at this point, we probably would want a continuous integration/continuous delivery (CI/CD) system, where code artifacts are built and deployed on an on-going basis. There would be little point in including the OS image inside each such artifact. That, in a nutshell, gets us to the idea of containers and their differences from VMs. The following diagram shows how containers are different from VMs:

主站蜘蛛池模板: 辽阳县| 策勒县| 绩溪县| 永仁县| 仪陇县| 宣汉县| 宁安市| 定西市| 荆州市| 巍山| 长垣县| 沛县| 商水县| 佛坪县| 延寿县| 惠东县| 花莲县| 广昌县| 临澧县| 永靖县| 论坛| 阿尔山市| 益阳市| 孝昌县| 安义县| 津市市| 丰城市| 清镇市| 葵青区| 遵化市| 集贤县| 上栗县| 邯郸县| 乾安县| 修文县| 东阿县| 贡嘎县| 师宗县| 清镇市| 安溪县| 榆社县|