You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
@lucaswxp yes, I see your point but if you remove the condition on versionhere, you can no longer ensure the consistency of events when there're several services updating the aggregate concurrently.
Currently, the implemented !safe mode makes it possible to use optimistic locking for handling concurrent access for data.
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 offindOne
, and sorting by the version later. What you guys think?The text was updated successfully, but these errors were encountered: