知识卡片

普通读书笔记卡 · 3304

异步接口也需要契约描述

理解等级:中级

异步通信可能经直接客户端服务交互或经消息代理完成。无论使用哪种交换方式,都需明确消息格式、参与方和交互约束;AsyncAPI 是描述异步接口的一种规范,但具体协议能力应单独核对。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Asynchronous APIs are very popular, falling generally into two categories: client-server and client-broker. An example client-server relationship is achieved with technologies such as gRPC, and the client-broker relationship is achieved using intermediate technologies such as Kafka. As you learned about in Chapter 1, OpenAPI Specifications have been critical to consistently describing and specifying REST APIs.

    参考来源

    - 位置:《Mastering API Architecture》第10章《Wrap-up》之《Async Communication》(源文件:_epub-src/OEBPS/ch10.xhtml) - 结论依据:原文区分两类异步通信,并提出需要统一描述异步 API 的规范。 - 原始内容:Asynchronous APIs are very popular, falling generally into two categories: client-server and client-broker. An example client-server relationship is achieved with technologies such as gRPC, and the client-broker relationship is achieved using intermediate technologies such as Kafka. As you learned about in Chapter 1 , OpenAPI Specifications have been critical to consistently describing and specifying REST APIs.