知识卡片
避免逐服务查询租户映射
若令牌只有用户身份,每个下游服务都要调用集中映射服务查询租户,将增加请求成本并形成瓶颈。尽量在认证边界完成可信用户与租户的绑定,向下游传递上下文;书中是一般设计倾向,不排除确有实时查询需求的例外。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Onboarding and Identity · 查看原书依据
tenant independently. The bigger issue, though, is that every service in the system must go through this centralized mapping mechanism to resolve tenant context. Imagine this step being performed across hundreds of services and thousands of requests. Many who adopt this approach quickly discover that this Tenant Mapping service ends up creating a significant bottleneck in their system, which then
参考来源
- 位置:《Building Multi-Tenant SaaS Architectures》第04章《Onboarding and Identity》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Multi-Tenant SaaS Architectures/_epub-src/OEBPS/ch04.html)
- 结论依据:原文具体说明若令牌只有用户身份,每个下游服务都要调用集中映射服务查询租户,将增加请求成本并形成瓶颈;本卡据此归纳机制及适用边界。
- 原始内容:tenant independently. The bigger issue, though, is that every service in the system must go through this centralized mapping mechanism to resolve tenant context. Imagine this step being performed across hundreds of services and thousands of requests. Many who adopt this approach quickly discover that this Tenant Mapping service ends up creating a significant bottleneck in their system, which then