Serverless 简明教程

Serverless Tutorial

Serverless 教程,顾名思义,可以帮助你使用 Serverless 函数部署 lambda 函数。lambda 函数变得非常流行,因为它们减轻了用户维护服务器的麻烦,而且因为它们仅向用户收取使用的时间和资源的费用。如果你的函数运行 500 毫秒,你只需支付 500 毫秒的费用。serverless framework 极大地简化了从本地机器向 AWS 部署 lambda 函数的过程,进一步减轻了用户创建堆栈和所需资源的麻烦。Serverless 会为你完成所有事情,以使你的 lambda 函数运行。在本教程中,我们将主要研究如何配置 serverless framework。最后提供了两个流行的 serverless 项目示例,以让你了解全貌。

Serverless tutorial, as the name suggests, helps you deploy your lambda functions using the serverless functions. Lambda functions are becoming very popular because they relieve the user of the headache of maintaining a server, and also because they charge the user only for the amount of time and resources used. If your function runs for 500ms, you will be charged only for 500ms. Deploying lambda functions from your local machine to AWS has been simplified very significantly by the serverless framework, further relieving the user of the headache of creating the stack and the required resources. Serverless does everything for you to get your lambda functions running. We will primarily look at configuring the serverless framework in this tutorial. Two examples of popular serverless projects are provided at the end, for you to get an idea of the complete picture.

Audience

本教程非常适合工程专业背景的学生/专业人士,他们从事云工程、数据科学、物联网、DevOps、后端系统等领域的工作。刚对 serverless 计算感到好奇和热情的用户也可能会发现本教程有益。

This tutorial is ideal for students/ professionals of an engineering background who are working in fields like Cloud Engineering, Data Science, IoT, DevOps, Backend Systems, etc. People who are just curious and enthusiastic about serverless computations may also find this tutorial beneficial.

Prerequisites

熟悉 AWS Lambda 会很有帮助,尽管这不是必需的。你可以查看此 AWS Lambda Tutorial 。本教程将使用 Python 作为 AWS Lambda 运行时。因此,熟悉 Python 将有所帮助。

Familiarity with AWS Lambda will be very beneficial, although it is not mandatory. You can check out this AWS Lambda Tutorial.We will be using Python as the AWS Lambda runtime for this tutorial. Therefore, familiarity with Python will be helpful.