Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set initial token to head when all contained Event Handling Components of a Streaming Event Processor disallow replays #2760

Open
smcvb opened this issue Jun 20, 2023 · 0 comments
Labels
Priority 4: Would Lowest priority. Would-be-nice to include issues when time allows it. Type: Feature Use to signal an issue is completely new to the project.

Comments

@smcvb
Copy link
Member

smcvb commented Jun 20, 2023

Feature Description

The current default for Sagas backed by a StreamingEventProcessor (SEP) is to set the initial TrackingToken to the head of the stream in the absence of configuration customization.
Although helpful, we can set a more reasonable approach concerning where a SEP should start processing based on any Event Handling Component (EHC) it deals with.
Namely, when all EHCs disallow replay behavior, it would be reasonable to default the TrackingToken to the head of the stream (i.o. the tail of the stream).

Current Behaviour

Axon Framework's current behavior around initial TrackingTokens for Sagas backed by StreamingEventProcessors is as follows:

  1. When there is no configuration customization, the TrackingToken defaults to the head of the stream.
  2. When there is configuration customization, the framework does nothing.

Wanted Behaviour

Set the initialTrackingToken to the head of the stream when all EHCs of a Streaming Event Processor disallow replays.
And, in the absence of other user customization, of course.

Possible Workarounds

None.

@smcvb smcvb added Priority 4: Would Lowest priority. Would-be-nice to include issues when time allows it. Type: Feature Use to signal an issue is completely new to the project. labels Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority 4: Would Lowest priority. Would-be-nice to include issues when time allows it. Type: Feature Use to signal an issue is completely new to the project.
Projects
None yet
Development

No branches or pull requests

1 participant