知识卡片
受限凭证缓存控制延迟
每次请求都取得受限凭证可能增加延迟与服务调用量。可按租户和正确权限语境缓存,并设置有效期,命中时复用、缺失时重新获取;缓存寿命必须服从凭证寿命和策略变化需求,不能将一个租户的凭证误复用给另一个租户。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Tenant Isolation · 查看原书依据
model to meet the needs of your system. There are caching strategies that you can introduce to hold your scoped credentials. With this approach, some will employ a time-to-live (TTL) setting to manage the lifecycle of these credentials. Figure 9-10 provides an example of how you might introduce this caching scheme.
参考来源
- 位置:《Building Multi-Tenant SaaS Architectures》第09章《Tenant Isolation》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Multi-Tenant SaaS Architectures/_epub-src/OEBPS/ch09.html)
- 结论依据:原文具体说明每次请求都取得受限凭证可能增加延迟与服务调用量;本卡据此归纳机制及适用边界。
- 原始内容:model to meet the needs of your system. There are caching strategies that you can introduce to hold your scoped credentials. With this approach, some will employ a time-to-live (TTL) setting to manage the lifecycle of these credentials. Figure 9-10 provides an example of how you might introduce this caching scheme.