asimkilic / EventDrivenMicroservices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Event Driven Microservices

CQRS Command and Query Responsible Segregation

axoniq.io/resources/event-sourcing

to start axon server with docker

docker run -d \
  --name axonserver \
  -p 8024:8024 \
  -p 8124:8124 \
  axoniq/axonserver

or you can download axon server jar and run the command java -jar axonserver.jar

Spring Dependencies

Add axon and google guava dependencies on pom.xml

<!-- https://mvnrepository.com/artifact/org.axonframework/axon-spring-boot-starter -->
<dependency>
    <groupId>org.axonframework</groupId>
    <artifactId>axon-spring-boot-starter</artifactId>
    <version>4.5.9</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>guava</artifactId>
    <version>31.1-jre</version>
</dependency>

What is SAGA?

The saga design pattern is a way to manage data consistency across microservices in distributed transaction scenarios

Success and Failure Scenarios


com.thoughtworks.xstream.security.ForbiddenClassException solution:

https://discuss.axoniq.io/t/getting-xstream-dependency-exception/3634/5


About


Languages

Language:Java 100.0%