AXON 的实例
摘要:参考:http://edisonxu.com/2017/03/30/axon-cqrs-example.html
阅读全文
posted @
2019-08-28 18:28
lshan
阅读(273)
推荐(0) 编辑
事件溯源的使用实例
摘要:场景: (User Service) 更新用户操作包含更新用户基本属性和分配角色,由两个线程分别执行,当一个线程执行成功另一个执行失败时,需要回滚整个处理流程 解决方案:使用CQRS事件溯源回滚聚合根到指定状态 事件溯源(Event Source): 事件溯源能够保证对应用状态所有的改变被当作一系列
阅读全文
posted @
2019-08-28 18:25
lshan
阅读(1322)
推荐(0) 编辑
CQRS With Axon
摘要:CQRS With Axon CQRS implementation with Axon[edit] According to the diagram above, creating commands, passing them to command bus and then creating ev
阅读全文
posted @
2019-08-28 18:21
lshan
阅读(227)
推荐(0) 编辑
axon 过滤存储哪些事件
摘要:MongoDB事件存储引擎 MongoDB是一个基于文档的NoSQL存储。 其可扩展性使其适合用作Event Store。 Axon提供了MongoEventStorageEngine,它使用MongoDB作为后台数据库。 它包含在Axon Mongo模块(Maven artifactId axon
阅读全文
posted @
2019-08-20 15:17
lshan
阅读(356)
推荐(0) 编辑
HttpServletResponse 的使用
摘要:场景:避免一些简单的响应数据,需要手动封装放回对象 response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "haha 系统崩了");
阅读全文
posted @
2019-05-20 12:03
lshan
阅读(912)
推荐(0) 编辑
axon mogoconfig
摘要://不需要认证的配置 package com.sea.elsa.subscribe.milestone.common.config; import java.util.Collections; import org.axonframework.eventhandling.saga.repositor
阅读全文
posted @
2019-05-14 14:33
lshan
阅读(196)
推荐(0) 编辑