Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在浏览 Async API 的规范,但我找不到任何可以代表通道的请求/响应语义的东西。我从 Spring-Kafka 的上下文中考虑,其@SendTo注释允许将响应消息发送到请求者指定的任意通道。
@SendTo
为特定框架定义此类自定义事物的最佳实践是使用规范扩展。例如:
asyncapi: 2.0.0 ... channels: myTopic: subscribe: x-spring-kafka: # You can probably come up with a better name :) sendTo: myOtherTopic ...
希望这可以帮助!