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

Overhaul event serialization in Marten 8 #3494

Open
jeremydmiller opened this issue Oct 19, 2024 · 0 comments
Open

Overhaul event serialization in Marten 8 #3494

jeremydmiller opened this issue Oct 19, 2024 · 0 comments

Comments

@jeremydmiller
Copy link
Member

jeremydmiller commented Oct 19, 2024

I've never liked the programming model we expose for upcasters / downcasters today, and I can't imagine it being terribly usable. For 8.0 (and Ermine), let's reconsider the whole model. Some possible ideas:

  • Embed a version or content-type field(s) in the table describing the event
  • Allow for an "upcasting" model that starts from the IEvent of the old model, then moves it forward to the new model. More like Wolverine's "forwarding" model
  • Allow for alternative serializers like MemoryPack or MessagePack for just the event storage
  • Embed "crypto shredding" capability into the way Marten reads events
@jeremydmiller jeremydmiller added this to the Marten 8.0 milestone Oct 19, 2024
@jeremydmiller jeremydmiller changed the title Overhaul event upcasters/downcasters for Marten 8 Overhaul event serialization in Marten 8 Oct 28, 2024
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

1 participant