知识卡片
FaaS把实例管理交给平台
函数服务把按请求分配执行环境、运行与回收交给平台,开发者不再逐个管理服务器。状态应外置或作为参数,不依赖某个短命实例始终存在。冷启动、可用运行时、执行时限和计费是重要约束;实际平台可能复用热实例,书内逐请求新建模型不等于所有实现每次都销毁。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
- · 第16章 虚拟化
原书出处 · 1 处
- 虚拟化 · 查看原书依据
A consequence of the dynamic allocation and deallocation in response to individual requests is that these short-lived containers cannot maintain any state: The containers must be stateless. In a serverless architecture, any state needed for coordination must be stored in an infrastructure service delivered by the cloud provider or passed as parameters.
参考来源
- 位置:《Software Architecture in Practice, 4th Edition》第16章《虚拟化》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch16.html)
- 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。
- 原始内容:A consequence of the dynamic allocation and deallocation in response to individual requests is that these short-lived containers cannot maintain any state: The containers must be stateless. In a serverless architecture, any state needed for coordination must be stored in an infrastructure service delivered by the cloud provider or passed as parameters.