I’m looking at implementing a programmatic reset handler for an event processor. There doesn’t seem to be much documentation around reset handlers in the Reference Guide, but the guidance from the trainings was to pause all of the event processors first, then have one of them reset the token, then resume them all.
Looking at the Swagger doc, the API requires that you specify a component in order to get the list of processors and/or pause them. But I don’t see anything indicating what the component should be, and there doesn’t appear to be any GET request that lists what components exist. Is there a way to find what the components for my event processors should be?
You can find an example in lab 6 of the training material (the ManagementEndpoint). The processor name is the same as the name of the processing group annotation of the event handler. If there is no processing group annotation the fully qualified class name of the event handler class must be used.
So this would be a microservice that I’d be scaling up horizontally, and according to the training materials when you have multiple services registering the same event processor you can pause them all simultaneously via the API. I was looking to make it so that the application could call Axon Server to pause all event processors of the given type, then drive the reset, and then resume the processors via API again, but there’s no documentation for using those APIs. I found them in Swagger, but it doesn’t explain what the component should be.
Am I misunderstanding the use for these APIs, or how event processing replay would work with multiple instances of the same codebase?