← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2313.e.5.f.10.b.3.i.2.c.1

同步响应不等于单线程

理解等级:中级

同步请求中,调用方等待所需处理完成后取得结果。若实现把等待资源一直占住,长任务会拖慢响应;但服务仍可以通过多线程或其他并发机制同时处理多条请求,不能把同步语义等同于整个服务只能串行执行。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Architecture of Distributed Systems · 查看原书依据

      Synchronous request processing is the traditional approach where a service handles each request from start to finish before moving on to the next one. When a client sends a request, the service processes it immediately and returns a response. This model is straightforward and easy to understand, making it a good choice for simple use cases or when real-time responses are required.

    参考来源

    - 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第03章《Architecture of Distributed Systems》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch03.xhtml) - 结论依据:原文给出本卡对象的职责及相关使用情境,本卡保留相应边界,不将具体产品功能或概述推广为无条件保证。 - 原始内容:Synchronous request processing is the traditional approach where a service handles each request from start to finish before moving on to the next one. When a client sends a request, the service processes it immediately and returns a response. This model is straightforward and easy to understand, making it a good choice for simple use cases or when real-time responses are required.