知识卡片
函数寿命与业务边界
FaaS按触发执行函数,在完成或达到时限后结束,适合按需负载。一个业务上下文可包含多个函数,但其数据、代码仓库和所有权应明确,不宜跨产品任意复用同一细粒度函数。临时执行环境可能被回收,温启动缓存与连接只是优化,不能替代持久状态和可恢复进度。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Microservices Using Function-as-a-Service · 查看原书依据
A function is a piece of code that is executed when a specific triggering condition occurs. The function starts up, runs until completion, and then terminates once its work is completed. FaaS solutions can easily scale the number of function executions up and down depending on load, providing close tracking for highly variable loads.
参考来源
- 位置:《Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)》第09章《Microservices Using Function-as-a-Service》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)/_epub-src/OEBPS/ch09.xhtml;规范化段落起句:A function is a piece of code)
- 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:FaaS按触发执行函数,在完成或达到时限后结束,适合按需负载。本卡同时保留其适用条件与失败边界。
- 原始内容:A function is a piece of code that is executed when a specific triggering condition occurs. The function starts up, runs until completion, and then terminates once its work is completed. FaaS solutions can easily scale the number of function executions up and down depending on load, providing close tracking for highly variable loads.