Hi,
In one of our projects we are creating “external” events based on “local” events in our application (based on an event store local to each micro service) which are then sent to a global event store. Now, we noticed that some of our (local) tokens have gaps which are never filled (there are no events in the local event store with such a global index). To make things a little bit more complicated: We need to merge certain instances of our application and thus we also have to merge the event stores (both the local and the global). The gaps raise some questions for us though:
- Why/when does this happen in the first place? We can’t seem to enforce a situation in which gaps occur.
- Our current approach for the merge is to set the index in the tokens to the maximum global index of the (merged) event store. We simply remove the gaps. Is that an issue? We don’t encounter any problems, even when resetting or even deleting one of the tokens.
- Is there a solution to “clean” the tokens in order to avoid an unlimited growing of the tokens?
Thank you and best regards
Nils