AxonFramework/AxonFramework — Issue #20: Improve Jpa (and FS) Event Stores so that only payload (and headers) need to be serialized
Author: abuijze
Created: 2011-12-03 14:52:33+00:00
State: open
Labels: Awaits Documentation

**What are the limitations you encounter in the current version? Please provide a simple use-case.**
Currently, the DomainEvent is serialized as a whole. All information Axon adds to the domain event is already stored separately from the payload (application specific potion) of the message. Therefore, only the payload needs to be serialized.

**Please describe the enhancement you would like to have.**
Put Axon-specific metadata in explicit table columns. Construct the DomainEventMessage using this data and pass the payload as byte[]. The payload only needs to be deserialized when getPayload() is invoked.