axon

Axon Framework: Change processing order between @EventHandler and @EventSourcingHandler

梦想的初衷 提交于 2019-12-11 18:04:01
问题 My question is how I can change the processing order between an @EventHandler and an @EventSourcingHandler , for the same given Event. I have the @EventSourcinHandler method in an Aggregate class and an @EventHandler in an external class. If i fire an command which results in said event event, my code will run like this: @EventSourcingHandler @EventHandler I want to change this order to this: @EventHandler @EventSourcingHandler I tried the @Order and @ProcessingGroup annotations, but none of

Axon Framework: Saga project with compensation events between two or three microservices

∥☆過路亽.° 提交于 2019-12-11 07:56:55
问题 I have a question about Axon Saga. I have a project where I have three microservices, each microservice has his own database, but the two "Slave" microservice has to share his data to the "Master" microservice, for that I want to use the Axon Saga. I already asked a question about the compensation, when something goes wrong, and I have to deal with the compensation by myself, it is ok, but not ideal. Currently I am using the DistributedCommandBus to communicate between the microservices, is

How to enable Parallel Processing for a processing group using the Axon API?

本小妞迷上赌 提交于 2019-12-11 07:28:07
问题 I'm trying to enable parallel processing on one of my processing group (a Saga to be exact), I followed the the Axon Reference and I ended up with the following @Autowired public void configureProcessor(Configurer configurer) { configurer.eventProcessing().registerTrackingEventProcessor("NameOfMySagaProcessor", org.axonframework.config.Configuration::eventStore, c -> c.getComponent( TrackingEventProcessorConfiguration.class, () -> TrackingEventProcessorConfiguration.forParallelProcessing(1)

Why does the RetryScheduler in Axon Framework not retry after a NoHandlerForCommandException?

我们两清 提交于 2019-12-11 05:03:53
问题 so I have a Saga and the Saga sends a command to a different microservice on a specific event. I wanted to configure the commandGateway with a RetryScheduler, so that it retries to send the command in case that the other microservice is down. The RetryScheduler will only perform retries if the exception is a RuntimeException, which the NoHandlerForCommandException that is thrown when the other service if offline definately is. If i dont set the maxRetryCount then the error message is o.a.c

Spring Boot application fails to run - spring.resources.cache-period were left unbound

懵懂的女人 提交于 2019-12-10 17:31:21
问题 I'm having difficulties with my Spring Boot application which is not willing to run. According to logs the reason of this situation is unbound spring.resources.cache-period property. This property however is set in application.properties and compiler is even returning it's value. I'll really appreciate if someone could lend me a hand with that issue. Logs pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001

Correct the classpath of your application so that it contains a single, compatible version of org.axonframework.eventsourcing.eventstore.jpa

人盡茶涼 提交于 2019-12-07 07:32:02
问题 I am working on Spring Boot + Axon example. Following https://www.youtube.com/watch?v=lBKZOTe9QM4&list=PL4O1nDpoa5KTq5QKX9ueK-0QCJ-6Wm_ma link from the youtube and using the latest dependencies. If I used axon-core and axon-amqp version to 3.0-RC1 then it works fine. But I use 3.4 version, then I get the below error on starup. Any quick help ? *************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call the method org

Is there any specific way for Axon migration from 2.4.3 version to 3.1.1

拥有回忆 提交于 2019-12-06 13:58:12
I am new to axon and doing migration from Axon 2.4.3 to 3.1.1 but I am not able to find any migration guide which is available for other version? Can you please share your experience on how to do the same. I am facing a lot problem, some classes have been removed, some packages have been changed. For some classes I am even not able to find replacements, so please help me with some suggestion. If there is a guide for same please provide me with link of that. Thanks in Advance Acctually I am not able to find replacement for these which were there in axon 2.4.3 ClusteringEventBus-

Correct the classpath of your application so that it contains a single, compatible version of org.axonframework.eventsourcing.eventstore.jpa

妖精的绣舞 提交于 2019-12-05 16:46:36
I am working on Spring Boot + Axon example. Following https://www.youtube.com/watch?v=lBKZOTe9QM4&list=PL4O1nDpoa5KTq5QKX9ueK-0QCJ-6Wm_ma link from the youtube and using the latest dependencies. If I used axon-core and axon-amqp version to 3.0-RC1 then it works fine. But I use 3.4 version, then I get the below error on starup. Any quick help ? *************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call the method org.axonframework.eventsourcing.eventstore.jpa.JpaEventStorageEngine.<init>(Lorg/axonframework/common/jpa

AXON 的实例

匿名 (未验证) 提交于 2019-12-02 23:55:01
参考:http://edisonxu.com/2017/03/30/axon-cqrs-example.html 来源:博客园 作者: lshan 链接:https://www.cnblogs.com/lshan/p/11425737.html

Real life experience with the Axon Framework [closed]

不打扰是莪最后的温柔 提交于 2019-12-02 16:33:37
As part of researching CQRS for use with a project, I ran across the Axon Framework , and I was wondering if anyone has any real life experience with it. Just to be clear, I'm asking about the framework, not CQRS as an architectural pattern. My project already uses Spring and Spring Integration which fits nicely with Axon's own requirements, but before i dedicate a lot of time to it, I would like to know if anyone has some first hand experience. In particular I'm interested i possible pitfalls that are not immediately apparent from the documentation. FrenchSpidey The framework relies heavily