知识卡片

普通读书笔记卡 · 2931.e.3.a.1.e

日志注入租户上下文

理解等级:中级

共享服务日志若没有租户标识,就会混合多个租户活动,难以定位单个租户的问题。统一注入可信租户上下文后,运维可按租户和套餐筛选事件;该能力适合公共日志封装,避免每个业务分支手工拼装而漏记。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      default, if you did nothing to your logs, they would contain a mixed collection of insights that had no correlation to any specific tenant. This would make it nearly impossible to piece together a view of the activity of any one tenant. If you’re on the operations team and you’re told that Tenant 1 is having issues that nobody else

    参考来源

    - 位置:《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) - 结论依据:原文具体说明共享服务日志若没有租户标识,就会混合多个租户活动,难以定位单个租户的问题;本卡据此归纳机制及适用边界。 - 原始内容:default, if you did nothing to your logs, they would contain a mixed collection of insights that had no correlation to any specific tenant. This would make it nearly impossible to piece together a view of the activity of any one tenant. If you’re on the operations team and you’re told that Tenant 1 is having issues that nobody else