Axon seem to notify all event listeners for all events. This works well if there are few 100 or 1000 event types. The moment we have say more event types say 10000 or so each event type is seeming to get published to all event listeners
e.g. 100 event types and 200 event listeners each event listeners method is parsed every time an event is published for matching and filtering the methods.
say 10,000 events got generated then 10,000 times 200 event listeners are matched.
if I have 2000 event listeners then for 10,000 events each time an event is published 2000 event listeners are parsed for matching based on method signature
that is humongous processing time.
what i thought would work better is each event type has a subscribe and unsubscribe method which will register event handlers that need to be published too rather than matching all event handlers from universal list of event handlers.