Serverless

作者: YDDMAX_Y | 来源:发表于2020-05-26 09:37 被阅读0次

参考:Serverless 选型:深度解读 Serverless 架构及平台选择

1.0 Serverless 简介

维基百科对于 Serverless 有较为完备的定义:

Serverless computing is a cloud computing execution model in which the cloud provider runs the server, and dynamically manages the allocation of machine resources. Pricing is based on the actual amount of resources consumed by an application, rather than on pre-purchased units of capacity.
无服务器计算是一种云计算执行模型,云厂商提供程序运行的服务器,并动态管理机器资源的分配。云厂商基于应用程序消耗的实际资源量进行定价,而不是用户预先购买的容量。

在这种计算模型下,会给用户带来如下收益:

Serverless computing can simplify the process of deploying code into production. Scaling, capacity planning and maintenance operations may be hidden from the developer or operator. Serverless code can be used in conjunction with code deployed in traditional styles, such as microservices. Alternatively, applications can be written to be purely serverless and use no provisioned servers at all.
无服务器计算可以简化代码部署到生产环境的过程,且扩缩容、容量规划和运维操作可以做到对开发人员透明化。无服务器代码可以与以传统方式(如微服务)部署的代码结合使用,或者,开发者可以按照无服务器计算的模式编写应用,完全不用提前配置服务器.

站在用户角度,我们可以抽象出 Serverless 的如下特征:

  • 免运维 (服务器运维、容量管理、弹性伸缩等)
  • 按资源的使用量付费

2.0 Serverless 开发模型

Martin Fowler 的这篇文章站在架构的角度,对 Serverless 开发模型做了充分的阐述,这里做个简单的总结,核心围绕三点:

  1. Event-driven 开发模型
  2. 自动弹性伸缩
  3. OpenAPI

3.0 Serverless 服务模型

Serverless 服务模型可以分为如下几类:

  • 资源实例平台

  • 调度平台

  • 应用管理平台

  • 业务逻辑管理平台

综合起来,即:

image

图7

业界 Serverless 产品

目前国内外云厂商均提供有不同维度的 Serverless 产品,如下做个简单的总结:

image

图 8

相关文章

网友评论

    本文标题:Serverless

    本文链接:https://www.haomeiwen.com/subject/zkcmahtx.html