Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Event Upcasters during reading of events #193

Closed
zambrovski opened this issue Oct 12, 2021 · 1 comment
Closed

Support Event Upcasters during reading of events #193

zambrovski opened this issue Oct 12, 2021 · 1 comment

Comments

@zambrovski
Copy link
Contributor

Enhancement Description

If the changes of the event classes are introduced the Kafka extension will try to deserialize the events using current class structure without the ability to match the binary representation of the event to the new structure. This will lead to a permanent fail of the Kafka consumer, since the structural change can't be adopted.

In case of Aggregate, Axon Framework provides a way of dealing with event evolution by using the Upcasters.

Current Behaviour

Currently, the events are de-serialized using the provided serializer without the ability to apply the upcaster (chain) to it.

Wanted Behaviour

The builder should accept the upcaster chain to pass the domain events through it.

Possible Workarounds

Replacement of the DefaultKafkaMessageConverter by an own one that support upcasters.

@zambrovski
Copy link
Contributor Author

@smcvb smcvb added this to the Release 4.6.0 milestone Oct 15, 2021
lfgcampos added a commit that referenced this issue Nov 3, 2021
feature: implement support for event upcasters, fix #193
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants