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.
在 AxonFramework 中,可以使用消息代理分发事件和命令,例如 RabbitMQ。
我想知道是否可以对查询做同样的事情,我在文档上找不到任何东西......
您在文档中找不到它是完全正确的,因为它尚未构建。至少,还不是开源软件。
您目前只能选择使用该SimpleQueryBus实现。所以没有对应DistributedQueryBus的(例如像DistributedCommandBus)。为了维护,我刚刚在 GitHub 上为它创建了一个问题。这样您就可以跟踪它的进度。
SimpleQueryBus
DistributedQueryBus
DistributedCommandBus
另一种选择是使用AxonHub。AxonHub 将允许您在(非)Axon 应用程序中分发所有消息形式,例如命令、事件和查询等。