David Derman
David Derman

Reputation: 871

NEventStore with multiple producers

If I have a load-balanced application that can be scaled to 2 or more instances, and each of those instances can commit events for the same NEventStore aggregate, will I run into ordering/race condition problems?

Upvotes: 0

Views: 143

Answers (1)

David Derman
David Derman

Reputation: 871

It looks like there is a unique index in the Commits table on BucketId, StreamId, and Commit Sequence. If two different instances of an application tried to commit changes to the same aggregate at the same time, the second one would receive a concurency exception, which could be handled. See more in this article: http://burnaftercoding.com/post/play-with-neventstore/

Upvotes: 0

Related Questions