Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7446153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:14:17+00:00 2026-05-29T12:14:17+00:00

Given event store with fields: AggregateId : integer Payload : blob Version : integer

  • 0

Given event store with fields:

  • AggregateId : integer
  • Payload : blob
  • Version : integer

Which contains events based on:

public class OrderLineAdded
{
    int Id;
    short Quantity;
}

… and then has further events added with an updated structure:

public class OrderLineAdded
{
    int ProductId; // field name has changed
    int Quantity; // field datatype has changed
}

When this historical data is retrieved (for analysis, etc), how do you reconstruct binary payload into meaningful data?

Note: the code above is not an example of a good event/event store implementation. I just want to know how this scenario should be handled.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T12:14:18+00:00Added an answer on May 29, 2026 at 12:14 pm

    Rinat Abdullin outlines some domain event versioning strategies in his CQRS bliki that you might find useful to read.

    https://abdullin.com/post/event-sourcing-versioning/

    He suggests two possible approaches:

    1. Use a serializer that can cope with renaming of properties in your event automatically such as Google’s ProtoBuf Serializer.
    2. Implement the following interface to manually upgrade events in-memory yourself.
    public interface IUpgradeDomainEvents
    {
        IEnumerable<IDomainEvent> Upgrade(IDomainEvent e, string id);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would you dynamically subscribe to a C# event so that given a Object
Is there any possibility that GetPropInfo returns nil even if the given class is
Does WPF support using a triggers that respond to routed events but only given
Let's say I'm maintaining a database of events, which could be anything from the
I have an events form that allows someone to add a new event. An
For a given Business with custom BusinessHours and Events, I need to figure out
Say I have a user domain class with fields username and password . For
I've got the following class: public class Terminal : IDisposable { readonly List<IListener> _listeners;
Say I have a simple class like this: public class ReferenceChanger<T> { public T
I'm designing a schema for an event registration system which will involve students from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.