【问题标题】:Axon Server - send events when the application startsAxon Server - 在应用程序启动时发送事件
【发布时间】:2020-04-06 10:21:39
【问题描述】:

我的情况如下: 我有两个微服务。当第一个发出事件时,另一个正确地接收它; 如果第一个发出事件而第二个微服务关闭,当我打开第二个微服务时,它不会收到事件。

编辑: 我正在尝试传奇,当我发出命令时,只有当它打开时,我才会在第二个服务上得到它。 我得到的错误是:

2020-04-06 13:53:40.341  WARN 1188 --- [-worker-ELG-3-1] i.a.a.message.command.C
ommandDispatcher  : No Handler for command: com.progressivecoder.ecommerce.comma
nds.CreateInvoiceCommand
2020-04-06 13:54:38.707  WARN 1188 --- [nio-8024-exec-8] .w.s.m.s.DefaultHandler
ExceptionResolver : Async request timed out
2020-04-06 13:54:41.514  WARN 1188 --- [nio-8024-exec-8] .w.s.m.s.DefaultHandler
ExceptionResolver : Resolved [org.springframework.web.context.request.async.Asyn
cRequestTimeoutException]
2020-04-06 13:55:01.699  WARN 1188 --- [nio-8024-exec-9] .w.s.m.s.DefaultHandler
ExceptionResolver : Async request timed out
2020-04-06 13:55:01.700  WARN 1188 --- [nio-8024-exec-9] .w.s.m.s.DefaultHandler
ExceptionResolver : Resolved [org.springframework.web.context.request.async.Asyn
cRequestTimeoutException]

阅读指南,我意识到我必须将命令总线配置为异步工作; 有没有我可以从中获得想法的例子? 谢谢。

【问题讨论】:

    标签: event-sourcing axon


    【解决方案1】:

    在 Axon Server 中,您是否看到在搜索选项卡中运行查询时发出的事件?您是否在概览选项卡中看到第二个微服务,它是否在应用程序详细信息中显示了跟踪事件处理器?

    马克

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-10-18
      • 1970-01-01
      • 1970-01-01
      • 2012-03-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多