标签: axon
In AxonFramework, it is possible to distribute events and commands using message brokers, like RabbitMQ for instance.
I wonder it is possible to do the same with queries, I can't find anything on docs...
答案 0 :(得分:2)
您完全无法在文档中找到它,因为它尚未构建。至少,还不是开源软件。
您目前只能选择使用SimpleQueryBus实施。所以没有相应的DistributedQueryBus(例如DistributedCommandBus)。 为了维护,我刚刚在GitHub上为它创建了一个issue。这样你就可以跟踪它的进展。
SimpleQueryBus
DistributedQueryBus
DistributedCommandBus
另一种选择是使用AxonHub。 AxonHub将允许您在(非)Axon应用程序中分发所有消息表单,如命令,事件和查询等。