← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2931.e.2.b.2.a.4.d

复用环境防止租户状态残留

理解等级:中级

函数执行环境可能在处理一个租户后复用于另一个租户。若把敏感请求状态留在全局变量或其他可复用位置,就可能产生跨租户暴露。请求级上下文须独立并在适当生命周期清理,不能因单次调用独占执行就认为环境永不跨租户复用。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Serverless SaaS: Architecture Patterns and Strategies · 查看原书依据

      state information that is not released upon completion, that state could be accessed by a subsequent tenant request. This is especially essential to pooled environments where your functions will be heavily shared between tenants. Ideally, your code should not be employing any constructs that would allow state to be carried over from one request to the next. However, given the

    参考来源

    - 位置:《Building Multi-Tenant SaaS Architectures》第11章《Serverless SaaS: Architecture Patterns and Strategies》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Multi-Tenant SaaS Architectures/_epub-src/OEBPS/ch11.html) - 结论依据:原文具体说明函数执行环境可能在处理一个租户后复用于另一个租户;本卡据此归纳机制及适用边界。 - 原始内容:state information that is not released upon completion, that state could be accessed by a subsequent tenant request. This is especially essential to pooled environments where your functions will be heavily shared between tenants. Ideally, your code should not be employing any constructs that would allow state to be carried over from one request to the next. However, given the