You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using axon 3.4.1 with kafka as StreamableMessageSource
There are scenarios where I would like to stop, reset-token(or createTokenAt) and start a particular tracking processor. Stopping and starting is pretty much straight forward. But I'm facing difficulty to reset the token to a particular time stamp as KafkaMessageSource does not provide an implementation for createTokenAt(Instant dateTime). It will be good to have this feature implemented.
I've checked this in axonframework.extensions.kafka 4.0-RC2 and its not implemented there as well.
Thanks for filing this issue @shubhojitr, I had it in the back of my mind somewhere any how but didn't find the time to draft up a description for it.
I am still thinking how this is gonna be implemented. The StreamableMessageSource works with timestamps, whilst as you might now Kafka deals with offsets. Guessing there's an API to retrieve the offset at a given timestamp but if there isn't...well, we'll need to dig deeper in that scenario.
Note that the upcoming release candidate for this extension introduces a SubscribableKafkaMessageSource. Using that instead of the current StreamableKafkaMessageSource lets you use Kafka's idea of resetting as the former message source will be provided to a SubscribingEventProcessor.
By the way, I would recommend to upgrade to a more recent version of Axon (4.2.1 at the moment). We do not have any active development on 3.x for over a year now and I do not envision this changing in the near future.
smcvb
changed the title
KafkaMessageSource Implementation for createTokenAt(Instant dateTime)
StreamableKafkaMessageSource create token implementations
Dec 23, 2019
@smcvb Thanks for your reply. I'll definitely look into SubscribableKafkaMessageSource. Any timeline for the new kafka RC release?
And yes as recommended by you I'm in processes of upgrading my app to latest version of axon.
I'm using axon 3.4.1 with kafka as StreamableMessageSource
There are scenarios where I would like to stop, reset-token(or createTokenAt) and start a particular tracking processor. Stopping and starting is pretty much straight forward. But I'm facing difficulty to reset the token to a particular time stamp as KafkaMessageSource does not provide an implementation for createTokenAt(Instant dateTime). It will be good to have this feature implemented.
I've checked this in axonframework.extensions.kafka 4.0-RC2 and its not implemented there as well.
Below code snippet throws UnsupportedOperationException.
The text was updated successfully, but these errors were encountered: