辛宝Otto

辛宝Otto 的玄酒清谈

北漂前端程序员儿 / 探索新事物 / Web Worker 主播之一/内向话痨
xiaoyuzhou
email

book has been read - Serverless Engineering Practice from Beginner to Advanced

#serverless

image.png

Author Liu Yu, with a black book cover.

Finished very quickly, wrote a few demos using python.

Three parts:

  • Concepts and Products
    • Definition, Specification, Advantages, Challenges, Open Source Recommendations
  • Getting Started with Development
    • Building FaaS
  • Engineering Practices
    • Operations, Images, Audio/Video, AI, Frontend, etc.

In 2018, Google released Knative, an open-source SLS framework based on Kubernetes, with the ability to build containers, traffic allocation, elastic scaling, zero instances, function events, etc.

CNCF's CNCF Serverless Whitepaper 1.0.

In China, there is KubeCon + CloudNativeCon.

Serverless = FaaS + BaaS.

FaaS solution consists of event source, FaaS controller, function instance, platform services (other cloud services such as DB, Auth), etc.

Cold start:

  • Instance reuse. Retain for a period of time after the end of the lifecycle.
  • Instance preheating
    • Passive
      • Rules, algorithms, hybrid preheating
      • That is, weights, deep learning predictions, etc.
    • Active
      • Simple configuration, metric configuration
    • Hybrid
  • Resource pooling

AWS Lambda, Alibaba Cloud Function Compute, Huawei Cloud Function Workflow, Tencent Cloud Cloud Function.

CNCF provides some industry FaaS platforms, Knative/OpenWhisk/Fission/Kubeless.

Open-source frameworks: Serverless Devs/Serverless Framework.

Function reuse. Perform operations before the main function.

  • In machine learning scenarios, load the model during initialization to avoid reloading it every time it is triggered.
  • Link objects during initialization, such as pooling.
  • Download initialization content when running for the first time.
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.