Files
nexus/wiki/concepts/Lambda.md
2026-04-20 00:02:56 +08:00

35 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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