Skip to content

MongoDB Eventstore has a 16MB limit of per aggregate root #23

@lucaswxp

Description

@lucaswxp

MongoDB has a 16MB limit per document hard-coded, since eventhus uses a single document to store the events, there's a limitation there.

I would recommend using per-document events, instead of per-document aggregates, and you can still make that atomic by simply removing the if condition here and remove entirely this else statement.

Of course, a change to Client.Load() to do a findAll instead of findOne, and sorting by the version later. What you guys think?

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