> 技术文档 > 第22章:云计算与容器化

第22章:云计算与容器化


22.1 云计算基础与服务模式 (Cloud Computing)

内容讲解

云计算是一种通过互联网按需提供计算服务的模式,这些服务包括服务器、存储、数据库、网络、软件、分析和智能等。用户可以根据需要租用这些资源,而不是自己购买和维护昂贵的物理基础设施。

服务模式 (SPI模型)

  1. 基础设施即服务 (Infrastructure as a Service, IaaS)

    • 提供内容:提供最底层的计算、存储、网络等基础设施资源。
    • 用户管理:用户需要自己管理操作系统、中间件、运行时、数据和应用程序
    • 比喻:云厂商提供一块空地,用户自己盖房子、装修、买家具。
    • 代表产品:Amazon EC2, Azure VM, Google Compute Engine。
  2. 平台即服务 (Platform as a Service, PaaS)

    • 提供内容:在IaaS之上,提供了操作系统、中间件、数据库和开发工具等平台级服务。
    • 用户管理:用户只需关注自己的应用程序和数据即可,无需关心底层平台的运维。
    • 比喻:云厂商提供精装修的房子,用户直接拎包入住。
    • 代表产品:Heroku, Google App Engine, AWS Elastic Beanstalk。
  3. 软件即服务 (Software as a Service, SaaS)

    • 提供内容:提供完整的、可直接使用的应用程序。
    • 用户管理:用户通过浏览器或客户端直接使用软件,无需任何开发或运维工作。
    • 比喻:用户直接租用酒店房间,享受所有服务。
    • 代表产品:Salesforce, Google Workspace, Microsoft Office 365。

部署模式

  • 公有云 (Public Cloud):由第三方云服务提供商拥有和运营,通过互联网向公众提供服务。
  • 私有云 (Private Cloud):为一个企业或组织单独使用而构建,部署在企业自己的数据中心或由第三方托管。
  • 混合云 (Hybrid Cloud):结合了公有云和私有云,允许数据和应用程序在两者之间共享。

架构图:云计算服务模型

#mermaid-svg-97cJwIW8iqu4JmqN {font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-97cJwIW8iqu4JmqN .error-icon{fill:#552222;}#mermaid-svg-97cJwIW8iqu4JmqN .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-97cJwIW8iqu4JmqN .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-97cJwIW8iqu4JmqN .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-97cJwIW8iqu4JmqN .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-97cJwIW8iqu4JmqN .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-97cJwIW8iqu4JmqN .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-97cJwIW8iqu4JmqN .marker{fill:#333333;stroke:#333333;}#mermaid-svg-97cJwIW8iqu4JmqN .marker.cross{stroke:#333333;}#mermaid-svg-97cJwIW8iqu4JmqN svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-97cJwIW8iqu4JmqN .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mermaid-svg-97cJwIW8iqu4JmqN .cluster-label text{fill:#333;}#mermaid-svg-97cJwIW8iqu4JmqN .cluster-label span{color:#333;}#mermaid-svg-97cJwIW8iqu4JmqN .label text,#mermaid-svg-97cJwIW8iqu4JmqN span{fill:#333;color:#333;}#mermaid-svg-97cJwIW8iqu4JmqN .node rect,#mermaid-svg-97cJwIW8iqu4JmqN .node circle,#mermaid-svg-97cJwIW8iqu4JmqN .node ellipse,#mermaid-svg-97cJwIW8iqu4JmqN .node polygon,#mermaid-svg-97cJwIW8iqu4JmqN .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-97cJwIW8iqu4JmqN .node .label{text-align:center;}#mermaid-svg-97cJwIW8iqu4JmqN .node.clickable{cursor:pointer;}#mermaid-svg-97cJwIW8iqu4JmqN .arrowheadPath{fill:#333333;}#mermaid-svg-97cJwIW8iqu4JmqN .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-97cJwIW8iqu4JmqN .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-97cJwIW8iqu4JmqN .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-svg-97cJwIW8iqu4JmqN .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg-97cJwIW8iqu4JmqN .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-97cJwIW8iqu4JmqN .cluster text{fill:#333;}#mermaid-svg-97cJwIW8iqu4JmqN .cluster span{color:#333;}#mermaid-svg-97cJwIW8iqu4JmqN div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-97cJwIW8iqu4JmqN :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;} Vendor Manages Vendor Manages You Manage Vendor Manages You Manage