Skip to content

AggregateStores vs ProjectionStores #5

@yonahforst

Description

@yonahforst

Hi again!

I've been struggling to understand why projections are stored differently from aggregates. Aggregates are fetched and stored individually, while projections are fetched and stored as an entire set.

I mean, I kind of understand it. Is it because projections aren't necessarily acting on one record alone as the result of an event? and a single event could cause changes in multiple places?

But then how is this implemented on a datastore level? do you need to deserialize and serialize the entire set each time?

Thanks, as always!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions