知识卡片

普通读书笔记卡 · 1980.z.8

客户端协调扩大往返与风险

理解等级:高级

协调把支付、备货、配送等构件连接成业务流程。放在浏览器或手机里最省服务端设施,但每一步可能跨广域网;三次300毫秒远程往返约900毫秒,而一次跨网加两次20毫秒内网约340毫秒。客户端还受用户控制,不能把贷款核验等可信控制交给它独立执行。适用于简单流程,关键检查仍须由可信服务落实。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 宏观架构中的协调 · 查看原书依据

      In contrast, if we place the coordination layers inside the same data center as the services, the client triggers the first call, and the subsequent calls happen within the data center. This approach has much better latency than the former approach. For example, if a WAN has a 300ms latency and the intranet call is 20ms, coordination with three services (driven from the client) takes 900ms but would take only 340ms otherwise.

    参考来源

    - 位置:《Software Architecture and Decision-Making》第06章《宏观架构中的协调》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch06.xhtml) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:In contrast, if we place the coordination layers inside the same data center as the services, the client triggers the first call, and the subsequent calls happen within the data center. This approach has much better latency than the former approach. For example, if a WAN has a 300ms latency and the intranet call is 20ms, coordination with three services (driven from the client) takes 900ms but would take only 340ms otherwise.