知识卡片

普通读书笔记卡 · 2931.e.2.a.2.c

Layer与扩展的职责不同

理解等级:中级

Lambda Layer可承载共享库,使公共租户逻辑独立版本化;扩展则关联函数生命周期,用于横切处理。书中把更新Layer描述为让服务获得新能力,但生产使用仍要处理函数对具体Layer版本的引用和发布,不能假定上传新版本会自动更新全部函数。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Building Multi-Tenant Services · 查看原书依据

      With Lambda Layers, you can essentially move all of your helpers into a shared library that is then deployed independently. Each of the Lambda functions that are part of your service can reference the code in this shared library, allowing them to access the different helper functions you have without having that code being part of each service. This allows

    参考来源

    - 位置:《Building Multi-Tenant SaaS Architectures》第07章《Building Multi-Tenant Services》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Multi-Tenant SaaS Architectures/_epub-src/OEBPS/ch07.html) - 结论依据:原文具体说明Lambda Layer可承载共享库,使公共租户逻辑独立版本化;扩展则关联函数生命周期,用于横切处理;本卡据此归纳机制及适用边界。 - 原始内容:With Lambda Layers, you can essentially move all of your helpers into a shared library that is then deployed independently. Each of the Lambda functions that are part of your service can reference the code in this shared library, allowing them to access the different helper functions you have without having that code being part of each service. This allows