Ignore "unknown" events


We have a bunch of microservices consuming events from a central event store. Of course not each service is aware of every event.
Currently we deserialize each event by default (and so often to an “empty” event).

Is there a way to easily skip the deserialization step for events a service does not know or need to know?


Hi Robin,

deserialization of message payloads is done lazily in AxonFramework. Axon will attempt to locate the class for a message. If that class is not found, the message is ignored. If it is, a message is forwarded to handlers, but deserialization of the payload will only happen when an Event Handler invokes Message.getPayload, or when the payload is a parameter of an annotated handler method.

Hope this helps.