Saga default processor type
See original GitHub issueBasic information
- Axon Framework version: 4.5
- JDK version: 15
I’m trying to better understand how sagas works and I’ve created three different projects to make some tests. I haven’t configure db to keep all in-memory. I discovered that the default configuration for sagas seems to be with subscribing processor instead the expected tracking processor.
Steps to reproduce
I wrote this simple saga:
@Saga
@Slf4j
public class TestSaga {
@StartSaga
@EndSaga
@SagaEventHandler(associationProperty = "id")
public void on(SampleEvent event) {
log.debug("Test Saga handler. Event id: " + event.getId());
}
}
This code print log only for live events, not for past events.
Then I tried simply adding the annotation @ProcessingGroup("MyTestSagaProcessor")
and I noticed that it started to print debug log at startup for all past and live events (as expected).
Is this the intended behaviour?
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Sagas - Axon Reference Guide
A Saga is a special type of Event Listener: one that manages a business transaction. ... Sagas are managed by a single Processor...
Read more >SAGA GIS Binary Grid File Format — GDAL documentation
The driver supports writing the following SAGA datatypes: BYTE_UNSIGNED (GDT_Byte), SHORTINT_UNSIGNED (GDT_UInt16), SHORTINT (GDT_Int16), INTEGER_UNSIGNED ( ...
Read more >Saga - Apache Camel
The Saga eip supports 7 options, which are listed below. Name, Description, Default, Type. sagaService. Refers to ...
Read more >Saga handler not executed if Event Handling Component and ...
The eventHandlers of normal events and Saga should check if the annotated processors exist and add their handlers to the existing processor.
Read more >RSAGA.pdf - The Comprehensive R Archive Network
RSAGA: SAGA Geoprocessing and Terrain Analysis in R. Description ... path in which to write output grid files; defaults to path.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This resolved my problem: do not delete Db where tokens are saved even while testing (use Replay API instead).
Thanks again for your time and your help @smcvb.
Test projects uploaded to this repository.
I suggest to replicate the steps described in my previous comment.
I have used IntelliJ IDEA to create the projects
first
andsecond
. To start AxonServer and MongoDB simply rundocker compose up
in the root folder. I left aTODO
on the commented@ProcessingGroup
annotation.