aws-serverless
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAWS Serverless
AWS Serverless
Overview
概述
Domain expertise for building serverless applications on AWS. Covers Lambda configuration, API Gateway debugging, Step Functions orchestration, EventBridge patterns, event source mappings, concurrency tuning, cold start optimization, deployment with SAM/CDK, production readiness, and troubleshooting across all serverless services.
Works best with the AWS MCP server — enables running CLI commands, querying CloudWatch, and validating configurations directly. All guidance also works with standard AWS CLI access.
Note: Reference files contain specific runtime versions, quota values, and feature matrices that may change. When precision matters (e.g., deploying to production, choosing a runtime, or checking a quota), confirm values against current AWS documentation rather than relying solely on the values in these files.
本内容专注于在AWS上构建无服务器应用程序的领域专业知识。涵盖Lambda配置、API Gateway调试、Step Functions编排、EventBridge模式、事件源映射、并发调优、冷启动优化、通过SAM/CDK进行部署、生产就绪性以及所有无服务器服务的故障排查。
最佳搭配 AWS MCP server —— 支持直接运行CLI命令、查询CloudWatch以及验证配置。所有指南也适用于标准AWS CLI访问方式。
注意: 参考文件包含特定的运行时版本、配额值和功能矩阵,这些内容可能会发生变化。当需要精准信息时(例如部署到生产环境、选择运行时或检查配额),请对照当前AWS文档确认数值,不要仅依赖这些文件中的内容。
Routing
指引路径
| User need | Action |
|---|---|
| Building a new serverless app | Read architecture.md for pattern selection, then deployment.md for SAM/CDK templates |
| Debugging an error | Read troubleshooting.md — starts with the 5 most common fixes |
| Optimizing performance or cost | Read lambda.md for cold starts and memory tuning, production.md for readiness checklist |
| Configuring event sources (SQS, DDB Streams, SNS) | Read event-sources.md |
| Step Functions, EventBridge, or orchestration | Read orchestration.md |
| Concurrency configuration | Read concurrency.md |
| API Gateway setup | Read api-gateway.md |
| Common anti-patterns | Read the anti-patterns section in production.md |
| Starting with Powertools | Use powertools-handler.py as a template |
| Spans multiple areas | Read the most specific reference first, then consult others as needed |
| 用户需求 | 操作 |
|---|---|
| 构建新的无服务器应用 | 阅读architecture.md选择架构模式,然后阅读deployment.md获取SAM/CDK模板 |
| 调试错误 | 阅读troubleshooting.md —— 从5种最常见的修复方案开始 |
| 优化性能或成本 | 阅读lambda.md了解冷启动和内存调优,阅读production.md查看生产就绪性检查清单 |
| 配置事件源(SQS、DDB Streams、SNS) | 阅读event-sources.md |
| Step Functions、EventBridge或编排相关 | 阅读orchestration.md |
| 并发配置 | 阅读concurrency.md |
| API Gateway设置 | 阅读api-gateway.md |
| 常见反模式 | 阅读production.md中的反模式章节 |
| 开始使用Powertools | 将powertools-handler.py作为模板 |
| 涉及多个领域 | 先阅读最相关的参考文档,然后根据需要查阅其他文档 |
Files
文件说明
| File | Content |
|---|---|
| lambda.md | Runtime, memory/CPU, cold starts, SnapStart, layers, containers |
| api-gateway.md | REST vs HTTP API, stages, auth, throttling, mapping |
| event-sources.md | SQS, DDB Streams, SNS, S3, Kinesis triggers |
| orchestration.md | Step Functions, EventBridge rules/pipes/scheduler |
| concurrency.md | Reserved vs provisioned, scaling, ESM concurrency |
| architecture.md | Patterns, reference architectures, service selection |
| deployment.md | SAM/CDK resource types, globals, fast iteration |
| production.md | Readiness checklist, observability, anti-patterns |
| troubleshooting.md | Error → cause → fix for all serverless services |
| 文件 | 内容 |
|---|---|
| lambda.md | 运行时、内存/CPU、冷启动、SnapStart、层、容器 |
| api-gateway.md | REST与HTTP API对比、阶段、认证、限流、映射 |
| event-sources.md | SQS、DDB Streams、SNS、S3、Kinesis触发器 |
| orchestration.md | Step Functions、EventBridge规则/管道/调度器 |
| concurrency.md | 预留并发与预置并发、扩展、ESM并发 |
| architecture.md | 架构模式、参考架构、服务选择 |
| deployment.md | SAM/CDK资源类型、全局配置、快速迭代 |
| production.md | 就绪性检查清单、可观测性、反模式 |
| troubleshooting.md | 所有无服务器服务的错误→原因→修复方案 |