Hi all,
we’re in the process of refactoring some databases and moving data around.
We want to replay some events with a new eventhandler, for just one time, which has the @disallowreplay annotation, but it will replay existing events in the db. This new eventhandler is going to call 2 api’s to send data from events it is replaying.
We use PooledStreamingEventProcessor and head/tail tokens for our eventhandlers. We’re on java/springboot and axon 4.9.1.
We’re unsure on how to handle when the new eventhandler encounters an error when calling the api’s. The new eventhandler will start replay the old events once the new app version goes live on production, but it can happen that the other services are still in the proces of booting up.
Would a track event processor be better to use for this new event handler? Or is there a better way of getting the info from the old events to a new db?
We have a sql script ready, but we would like to just be able to start the app and let axon do the work in the background.