知识卡片

普通读书笔记卡 · 1841.h.1.a.1.a.3.f.1.a.5.a

同步与异步的区别

理解等级:中级

同步调用让请求者等待结果;异步调用在消息被接收后允许继续工作,结果可经回复消息返回。消息队列是常见实现而非定义本身。选择会影响错误处理、响应时间与吞吐,也不直接决定一致性:异步系统仍需设计可靠性与状态协调。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Evolutionary Architecture Topologies · 查看原书依据

      Synchronous communication requires that the requestor wait for the response from the receiver, shown in Figure 5-10. Figure 5-10. A synchronous call waits for a response from the receiver In Figure 5-10, the calling service makes a call (using one of a number of protocols that support synchronous calls, such as gRPC) and blocks (does no further processing) until the receiver returns some value (or

    参考来源

    - 位置:《Building Evolutionary Architectures Automated Software Governance, 2nd Edition》第05章《Evolutionary Architecture Topologies》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Evolutionary Architectures Automated Software Governance, 2nd Edition/_epub-src/OEBPS/ch05.html;段落定位:Synchronous communication requires that the requestor wait) - 结论依据:原文对“同步与异步的区别”的定义或案例,支撑“同步调用让请求者等待结果;异步调用在消息被接收后允许继续工作,结果可经回复消息返回”的归纳。据其上下文,消息队列是常见实现而非定义本身。 - 原始内容:Synchronous communication requires that the requestor wait for the response from the receiver, shown in Figure 5-10. Figure 5-10. A synchronous call waits for a response from the receiver In Figure 5-10, the calling service makes a call (using one of a number of protocols that support synchronous calls, such as gRPC) and blocks (does no further processing) until the receiver returns some value (or