知识卡片

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

网关注入权限的权衡

理解等级:中级

把受限凭证解析移到网关,可减少微服务内的重复逻辑并创造缓存机会,但也让策略远离了解资源需求的服务。多个服务共用网关时尤其要明确权限归属,避免为方便而让所有服务共享过宽的策略。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Tenant Isolation · 查看原书依据

      cache scoped credentials to address potential latency issues. The downside of this model, though, is that the isolation policies move outside the microservice. Generally, the scoping of policies is seen as part of the microservice and is closely connected to its implementation. This strategy breaks that mental model (at least somewhat). This is especially true if the gateway is used

    参考来源

    - 位置:《Building Multi-Tenant SaaS Architectures》第09章《Tenant Isolation》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Multi-Tenant SaaS Architectures/_epub-src/OEBPS/ch09.html) - 结论依据:原文具体说明把受限凭证解析移到网关,可减少微服务内的重复逻辑并创造缓存机会,但也让策略远离了解资源需求的服务;本卡据此归纳机制及适用边界。 - 原始内容:cache scoped credentials to address potential latency issues. The downside of this model, though, is that the isolation policies move outside the microservice. Generally, the scoping of policies is seen as part of the microservice and is closely connected to its implementation. This strategy breaks that mental model (at least somewhat). This is especially true if the gateway is used