知识卡片

普通读书笔记卡 · 1980.z.4.d.3.c

冷启动不保证本地状态

理解等级:中级

冷启动需要创建执行环境、加载代码和连接,温启动可复用部分资源降低开销。但平台可以回收实例,业务状态应外置并明确保存和读取。持久函数框架可代管部分状态,仍应理解其恢复边界。终止前要按运行频率权衡连接清理,并释放不再处理的分区,避免其他实例等超时才接手。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Microservices Using Function-as-a-Service · 查看原书依据

      A cold start is the default state of the function upon starting for the first time, or after a sufficient period of inactivity. A container must be started and the code loaded, event broker connections may need to be created, and any other client connections to external resources need to be established. Once everything is stable and ready to process, the function is now in a warm state and ready

    参考来源

    - 位置:《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 cold start is the default state) - 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:冷启动需要创建执行环境、加载代码和连接,温启动可复用部分资源降低开销。本卡同时保留其适用条件与失败边界。 - 原始内容:A cold start is the default state of the function upon starting for the first time, or after a sufficient period of inactivity. A container must be started and the code loaded, event broker connections may need to be created, and any other client connections to external resources need to be established. Once everything is stable and ready to process, the function is now in a warm state and ready