随笔 - 835  文章 - 1 评论 - 40 阅读 - 102万
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

随笔分类 -  AXON

AXON 的实例
摘要:参考:http://edisonxu.com/2017/03/30/axon-cqrs-example.html 阅读全文
posted @ 2019-08-28 18:28 lshan 阅读(273) 评论(0) 推荐(0) 编辑
事件溯源的使用实例
摘要:场景: (User Service) 更新用户操作包含更新用户基本属性和分配角色,由两个线程分别执行,当一个线程执行成功另一个执行失败时,需要回滚整个处理流程 解决方案:使用CQRS事件溯源回滚聚合根到指定状态 事件溯源(Event Source): 事件溯源能够保证对应用状态所有的改变被当作一系列 阅读全文
posted @ 2019-08-28 18:25 lshan 阅读(1322) 评论(0) 推荐(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) 推荐(0) 编辑
axon 过滤存储哪些事件
摘要:MongoDB事件存储引擎 MongoDB是一个基于文档的NoSQL存储。 其可扩展性使其适合用作Event Store。 Axon提供了MongoEventStorageEngine,它使用MongoDB作为后台数据库。 它包含在Axon Mongo模块(Maven artifactId axon 阅读全文
posted @ 2019-08-20 15:17 lshan 阅读(356) 评论(0) 推荐(0) 编辑
HttpServletResponse 的使用
摘要:场景:避免一些简单的响应数据,需要手动封装放回对象 response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "haha 系统崩了"); 阅读全文
posted @ 2019-05-20 12:03 lshan 阅读(912) 评论(0) 推荐(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) 推荐(0) 编辑

点击右上角即可分享
微信分享提示