知识卡片
入口遥测连接跨服务请求
多数外部请求经过系统入口,网关适合记录吞吐、错误和延迟,并为请求注入关联标识。后续服务传播同一标识,日志和追踪才能跨服务串联。仅采集数据还不够,需把它们加工成可用于判断的视图和告警。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
It is an ideal location to capture top-line ingress metrics, such as the number of errors, throughput, and latency, and it is also a key location for identifying and annotating requests (potentially with application-specific metadata) that flow throughout the system further upstream. Correlation identifiers2 are typically injected into a request via the API gateway and then can be propagated by each upstream service.
参考来源
- 位置:《Mastering API Architecture》第3章《API Gateways: Ingress Traffic Management》之《Understand How APIs Are Being Consumed: Observability》(源文件:_epub-src/OEBPS/ch03.xhtml)
- 结论依据:原文说明入口适合采集总体指标和注入关联标识,后续服务传播标识以关联日志与追踪,并提出分析、看板和告警要求。
- 原始内容:It is an ideal location to capture top-line ingress metrics, such as the number of errors, throughput, and latency, and it is also a key location for identifying and annotating requests (potentially with application-specific metadata) that flow throughout the system further upstream. Correlation identifiers 2 are typically injected into a request via the API gateway and then can be propagated by each upstream service.