Auto-sync: 2026-04-20 00:02
This commit is contained in:
35
wiki/concepts/Lambda.md
Normal file
35
wiki/concepts/Lambda.md
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
title: "Lambda"
|
||||
type: concept
|
||||
tags:
|
||||
- AWS
|
||||
- Serverless
|
||||
- Compute
|
||||
- Cloud-Native
|
||||
date: 2024-09-03
|
||||
---
|
||||
|
||||
## Definition
|
||||
AWS Lambda 是无服务器(Serverless)计算服务,开发者只需编写业务逻辑代码,AWS 自动处理服务器配置、扩展和运维。Lambda 函数由事件触发,当事件发生时执行相应的代码。
|
||||
|
||||
## Core Characteristics
|
||||
- 事件驱动:Lambda 函数由状态变化(事件)触发
|
||||
- 按需付费:按请求数和执行时长计费
|
||||
- 自动扩展:AWS 自动处理负载均衡和扩展
|
||||
- 支持语言:Node.js、Python、Java、C#、Go、Ruby 等
|
||||
|
||||
## Invocation Types
|
||||
- 同步调用:调用者等待响应
|
||||
- 异步调用:事件进入队列后立即返回
|
||||
- 事件源映射:根据流或队列事件触发
|
||||
|
||||
## Management Features
|
||||
- 版本控制:发布代码快照,通过别名指向特定版本
|
||||
- 别名:指向特定版本的指针,支持蓝绿部署
|
||||
- Layers:共享公共代码库
|
||||
- 并发控制:设置函数并发上限
|
||||
|
||||
## Aliases
|
||||
- AWS Lambda
|
||||
- Lambda 函数
|
||||
- Lambda Function
|
||||
Reference in New Issue
Block a user