--- title: "Public Cloud Learning Sessions (OpenText)- Serverless Computing - 20240903" type: source tags: - Serverless - AWS - Lambda - OpenText - Cloud Learning date: 2024-09-03 --- ## Source File - [[raw/Cloud & DevOps/Public-Cloud-Learning-Sessions/09_Serverless_AI/public-cloud-learning-sessions-opentext-serverless-computing-20240903-160139-mee.md]] ## Summary - 核心主题:AWS 无服务器计算(Serverless Computing)学习会议 - 问题域:云原生架构、事件驱动计算、无服务器函数 - 方法/机制:Lambda 事件触发机制、Step Functions 工作流编排、API Gateway API 管理、SAM 本地开发 - 结论/价值:Serverless 模式帮助企业快速上市、聚焦业务、降低 TCO、按需付费、自动扩展 ## Key Claims - Lambda 函数由事件触发(状态变化),支持同步、异步、事件源映射三种调用方式 - AWS 与客户共担运维责任,AWS 负责基础设施,客户负责代码 - Lambda 版本和别名用于管理代码变更,发布新版本后可通过别名指向 - Lambda Layers 支持跨函数共享公共代码 ## Key Quotes > "Lambda functions are triggered by events, which are changes in state." > Whenever you see that you have written code and you want that this code is final, you can publish as a new version. ## Key Concepts - [[Lambda]]:AWS 无服务器计算服务,开发者只需编写业务逻辑,AWS 处理基础设施 - [[Step Functions]]:无服务器工作流服务,基于状态机编排多个 AWS 服务 - [[API Gateway]]:托管服务,用于创建、发布和保护 API - [[Serverless Application Model]]:SAM,本地开发和部署无服务器应用的工具,基于 CloudFormation - [[Event-driven Computing]]:事件驱动计算,Lambda 函数的触发机制 - [[Execution Role]]:Lambda 执行角色,定义函数可以执行的操作 - [[Resource-based Policy]]:基于资源的策略,定义谁可以触发函数 ## Key Entities - [[AWS]]:云服务提供商 - [[OpenText]]:企业软件公司 ## Connections - [[Lambda]] ← powers ← [[Step Functions]] - [[Lambda]] ← exposed_by ← [[API Gateway]] - [[Lambda]] ← deployed_with ← [[Serverless Application Model]] - [[AWS Lambda]] ← manages_infrastructure ← [[Event-driven Computing]] ## Contradictions - 与传统 EC2 对比:EC2 提供灵活性和控制,Lambda 允许开发者聚焦业务逻辑