Questions tagged [axon]

Axon consists of two main topics: (1) Axon Framework and (2) Axon Server. Axon Framework is a Java based open source framework providing building blocks to support developers with Domain-Driven Design, CQRS and Event Sourcing in their application. Axon Server provides a dedicated message routing solution and Event Store, further supporting a micro services oriented style of software development.

Through Axon, we can refer to two major topics: Axon Framework and Axon Server.

Axon Framework is a Java based open source framework providing building blocks to support developers with Domain-Driven Design, CQRS and Event Sourcing in their application.

Axon Server provides a dedicated routing solution and Event Store, further supporting a micro services oriented style of software development.

578 questions
4
votes
1 answer

AxonFramework: How to test @EventHandler

I have this component which integrates with other services through a RabbitMQ queue: @Component @ProcessingGroup("amqpProcessor") public class ExternalEventsHandler { @EventHandler public void on(SomeOtherServiceEvent event) { //…
Marcos J.C Kichel
  • 6,887
  • 8
  • 38
  • 78
4
votes
1 answer

Is there a way to wait for the results or exceptions of a Saga?

Say I have a Saga that does money transfer in a few milliseconds. I have REST controller which invokes the command that triggers the Saga. How can I wait for the end of the Saga to check the results or exception to have my controller return as a…
sofiaguyang
  • 1,123
  • 1
  • 14
  • 21
4
votes
2 answers

Can an Aggregate Root factory method return a command instead of publishing an event?

In Vaughn Vernon's Implementing Domain-Driven Design book, he described the use of factory method in an Aggregate Root. One example was that of a Forum aggregate root which had startDiscussion factory method which returned a Discussion aggregate…
sofiaguyang
  • 1,123
  • 1
  • 14
  • 21
3
votes
2 answers

Why DDD for CQRS and Event Sourcing application?

I am just starting with the CQRS, Event Sourcing. While examining many frameworks, I have realized that one of the thing most of the frameworks assumed that our application is modelled based on the DDD principles. I am not sure but can anyone…
3
votes
2 answers

Configuring Axon in Spring for integration testing

Still new to java and axon, having troubles to setup integration test suite using spring and axon. Basically, I have some process, which: starts with command1 goes to command handler on aggregate and event1 is dispatched event1 is processed by some…
Tom
  • 189
  • 1
  • 12
3
votes
2 answers

Microservice not able to connect to AXON Server running as docker image

I have discovery service: https://github.com/Naresh-Chaurasia/API-MicroServices-Kafka/tree/master/Microservices-CQRS-SAGA-Kafka/DiscoveryService I have product service:…
Naresh Chaurasia
  • 419
  • 5
  • 21
3
votes
2 answers

Can I say Axon Commands and Events are considered as anemic models?

My question here is quite straight as mentioned in the subject. However, please allow me to give some brief explanation here about my innocent thoughts. I've been using Axon for approximately 10 months now. I used to design my project structure…
yauritux
  • 62
  • 7
3
votes
1 answer

Axon: Create and Save another Aggregate in Saga after creation of an Aggregate

Update: The issue seems to be the id that I'm using twice, or in other words, the id from the product entity that I want to use for the productinventory entity. As soon as I generate a new id for the productinventory entity, it seems to work fine.…
Jan
  • 73
  • 1
  • 7
3
votes
2 answers

Is there a way to test events from the test fixture directly without using expectEvents?

Im trying to test an Aggregate and would like to assert the events outside of the fixture and perhaps even use Hamcrest to evaluate? An example of using timestamps fixture.given() .when(new UserCreateCommand("1","test@bob.com")) …
vcetinick
  • 1,957
  • 1
  • 19
  • 41
3
votes
2 answers

Should microservices connected with axon share the axon framework related tables?

I am starting a project where I want to have multiple services that communicate with each other using the axon server. I have more than one service with the following stack: Spring Boot 2.3.0.RELEASE (with starters: Data, JPA, web,…
Alfredo
  • 159
  • 1
  • 3
  • 10
3
votes
1 answer

Maintain reference between aggregates

I'm trying to wrap my head around how to maintain id references between two aggregates, eg. when an event happens on either side that affects the relationship, the other side is updated as well in an eventual consistent manner. I have two…
Vincent
  • 65
  • 1
  • 5
3
votes
1 answer

Project Reactor Using EmitterProcessor as an event bus

We were testing out how to use EmitterProcessor as an eventbus. Basically we want to indirectly let the Spring Controller know that something was successfully was done, we pass a unique key which is listened for in the spring controller (So if a…
MilindaD
  • 7,533
  • 9
  • 43
  • 63
3
votes
1 answer

Event sourcing, CQRS with Axon Server / Framework - Event Sourcing the entire application a good idea?

This question is very loosely related to Axon Server / Framework, since I'm learning it specifically while studying and trying to get into learning how to build microservices. Since it's difficult to learn about all the architectural patterns…
John Kim
  • 1,081
  • 10
  • 26
3
votes
1 answer

Event handler replays when restarting app?

I am playing around with axon server locally. I am running a docker container on my local machine via the command docker run -d --name axonserver -p 8024:8024 -p 8124:8124 axoniq/axonserver. When I start my spring-boot application, my event handler…
GoldFlsh
  • 1,095
  • 2
  • 11
  • 26
3
votes
1 answer

Axon SpringBeanParameterResolverFactory with null applicationContext when instantiated from classpath loader

I have asked this question in the Axon google group 10 days ago, but have gotten no love so far. I'm beginning to wonder if maybe it's more suitable to ask here. I am trying to inject a bean as parameter to a command handler, but can't figure out…
Bruno
  • 85
  • 1
  • 10
1 2
3
38 39