摘要:
参考:http://edisonxu.com/2017/03/30/axon-cqrs-example.html
阅读全文
posted @ 2019-08-28 18:28
lshan
阅读(284)
推荐(0)
摘要:
场景: (User Service) 更新用户操作包含更新用户基本属性和分配角色,由两个线程分别执行,当一个线程执行成功另一个执行失败时,需要回滚整个处理流程 解决方案:使用CQRS事件溯源回滚聚合根到指定状态 事件溯源(Event Source): 事件溯源能够保证对应用状态所有的改变被当作一系列
阅读全文
posted @ 2019-08-28 18:25
lshan
阅读(1343)
推荐(0)
摘要:
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
阅读(235)
推荐(0)
摘要:
有时候在项目开发中,需要很多依赖的 jar 包,其中依赖的 jar 包也会依赖其他的 jar 包,导致jar 包的管理很容易不全,以下有两种方法可以规避这个问题。(https://blog.csdn.net/mrzhangbaby/article/details/88356178) 一、在pom.x
阅读全文
posted @ 2019-08-28 12:05
lshan
阅读(7569)
推荐(0)
摘要:
1.基础语法: 相关网站: http://www.runoob.com/mongodb/mongodb-query.html Noted: 1> can not order by multiple fields. 2> better to use object array , not use a s
阅读全文
posted @ 2019-08-27 17:11
lshan
阅读(1526)
推荐(0)
摘要:
Dockerfile: FROM frolvlad/alpine-oraclejre8:slim VOLUME /tmp ADD app.jar /app.jar #COPY agent/ /usr/local/skyagent/ WORKDIR /opt COPY docker-entrypoin
阅读全文
posted @ 2019-08-27 16:45
lshan
阅读(2753)
推荐(0)
摘要:
logback.xml Appender: 中添加自定义的filter <!--MIlESTONE 按照每天生成日志文件 --> <appender name="PROCESS_MILESTONE_LOG" class="ch.qos.logback.core.rolling.RollingFile
阅读全文
posted @ 2019-08-23 15:22
lshan
阅读(1123)
推荐(0)
摘要:
使用方法: 在application.properties中添加: # @remark open springboot Gzip to solve the problem that login page loading time is too long. server.compression.ena
阅读全文
posted @ 2019-08-23 11:01
lshan
阅读(675)
推荐(0)
摘要:
依赖: <!-- Add apollo configuration --> <dependency> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo-client</artifactId> <version>${apo
阅读全文
posted @ 2019-08-21 17:59
lshan
阅读(839)
推荐(0)
摘要:
MongoDB事件存储引擎 MongoDB是一个基于文档的NoSQL存储。 其可扩展性使其适合用作Event Store。 Axon提供了MongoEventStorageEngine,它使用MongoDB作为后台数据库。 它包含在Axon Mongo模块(Maven artifactId axon
阅读全文
posted @ 2019-08-20 15:17
lshan
阅读(378)
推荐(0)