Questions tagged [axon-framework]

Axon Framework provides help to build applications based on CQRS/DDD and Event Sourcing. Use this tag when you are having problems using or understanding the framework itself.

44 questions
2
votes
1 answer

Axon Framework: Convert XStream serialized events to Jackson Serializer in existing application

We have an application that was written using the Axon Framework. Based on the issues we are having with XStream, the idea of converting to the Jackson serializer has been proposed. Is it possible to convert the current events in the event store to…
Kenneth Clark
  • 356
  • 1
  • 14
2
votes
1 answer

Axon Event Store Handling - Read All events for an aggregate

I am using Axon with Spring boot and will like to list an event history for an aggregate. With the event store -> readEvents(String id), we only get events from the last snapshot. eventStore.readEvents(aggregateId).asStream().map(e ->…
spartan712
  • 37
  • 5
2
votes
1 answer

Axon Event Handler Read All Events Each Restart

I put Event Handler to query my events in axon framework in my spring application. I can put an event from my command up and I can read them from my query app.until reboot time no problem But when I reboot my query app Each time it reads same events…
Bilgehan
  • 1,135
  • 1
  • 14
  • 41
2
votes
1 answer

Understanding of @AggregateIdentifier & @TargetAggregateIdentifier

so I'm learning about the axon framework and just want to solidify my understanding of the @TargetAggregateIdentifier annotation. My Command: public class IssueCardCommand { private String cardId; private String versionNumber; private Integer…
amasuKAKAROT
  • 119
  • 11
1
vote
1 answer

Migrate axon framework to Java 17

I am migrating to Spring Boot 3 and Java 17 and using Axon framework 4.8.0. When I try to startup the project I get: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest Afaik, javax is no longer used and jakarta.* must be used.…
Bernat Mir
  • 21
  • 3
1
vote
1 answer

New Saga starts with 0 global index when specific name is given

I am a bit confused how Axon behaves when creating new saga-s. In past I have created sagas and given their ProcessingGroups specific name via constants so I can reference them in tracking process configurations. All previously added Saga-s had…
Vaelyr
  • 2,841
  • 2
  • 21
  • 34
1
vote
1 answer

Initial token position in axon kafka extension

I'm using Axon kafka extension (4.5.4) to receive events from multiple sources (MultiStreamableMessageSource). How can I set initial token position (head) for StreamableMessageSource? With this configuration val config =…
Sergey Bulavkin
  • 2,325
  • 2
  • 17
  • 26
1
vote
1 answer

Tagging metrics from an Axon Framework MessageMonitor with the segment ID

For some background, we have a custom message monitor that is very similar to the EventProcessorLatencyMonitor included with Axon Framework >=4.1. My understanding is that onMessageIngested would only ever be called if that processor has claimed a…
kagof
  • 522
  • 2
  • 12
1
vote
1 answer

Axon save events in event stroe first or publish events in Event Bus first?

I am trying to make a sequence diagram for Axon workflow. However, I am not sure what's the event processing order. Does Axon save events in the Event Store first, or does it publish the events on the Event Bus first?
abdogh
  • 35
  • 6
1
vote
1 answer

What happens if an error happened when saving event store data inside of Axon framework?

I am new to Axon framework. I have a doubt about saving the events in the event store by axon framework? just think, we are going to execute an execution and the axon server tries to save the events in to the event store. while that, an exception…
Mafei
  • 3,063
  • 2
  • 15
  • 37
1
vote
2 answers

Axon Framework Event Package Refactoring

I have a set of events that have been refactored to another package. This works as is until I execute the event replay. Digging deeper I noticed a payloadtype in the domainevententry table and figure changing this would be sufficient but alas it…
Kenneth Clark
  • 356
  • 1
  • 14
1
vote
1 answer

Excessive claiming of tracking token

We have noticed excessive logging from the TrackingEventProcessor class when scaling up the micro-service to 2 replicas: Our Axon setup: axon version 3.4.3 spring-boot version 2.1.6.RELEASE an in-house couchbase implementation as the TokenStore,…
HeatZync
  • 160
  • 1
  • 10
1
vote
1 answer

Axon Saga to Query Another Microservice

When a @SagaEventHandler needs to fetch data from another Microservice that also uses Axon Framework, is it a good practice to use QueryGateway to query another Microservice? Or it is better to use something like RestTemplate to call another…
1
vote
1 answer

Axon - PostgreSQL - Where is the payload in the event store?

I am currently setting up an event-store with Axon-framework in PostgreSQL (spring boot, axon-spring-boot-starter, axon-server-connector removed from the dependency). The system loads as expected and I am able to see commands, events and event…
Felipe
  • 259
  • 1
  • 3
  • 9
1
vote
1 answer

Axon Event Deserialization Issue?

I have an eventsourced aggregate and use Jackson as eventserializer. Now, when I apply an event A in a command handler, I can see it's event sourcing handler called immediately, with all the expected event fields (event is the same instance as I…
JointEffort
  • 583
  • 7
  • 21
1
2 3