知识卡片

普通读书笔记卡 · 1769.l

传输协议不等于处理保证

理解等级:高级

HTTP请求响应普遍易用,但单靠它不能证明消息必达或业务效果只发生一次。双向连接和推送可考虑WebSocket、HTTP2或gRPC;持久队列协议可把确认与磁盘恢复纳入传递过程。应先确定请求响应、推送、持久与确认的需求,再选实现;即使用消息代理,端到端恰好一次效果仍取决于消费者和业务副作用,不能从协议名推出。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 服务端架构 · 查看原书依据

      With HTTP, the request starts from the client, the server processes the request and sends a response, and the client waits until a response is received. HTTP, however, provides no message delivery guarantees.

    参考来源

    - 位置:《Software Architecture and Decision-Making》第11章《Server Architectures》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch11.xhtml) - 结论依据:摘录说明HTTP请求响应普遍易用,但单靠它不能证明消息必达或业务效果只发生一次。其余条件结合本章相邻例子与取舍说明,数字示例不作当前性能承诺。 - 原始内容:With HTTP, the request starts from the client, the server processes the request and sends a response, and the client waits until a response is received. HTTP, however, provides no message delivery guarantees.