GreanTech / AtomEventStore

A server-less .NET Event Store based on the Atom syndication format
MIT License
117 stars 14 forks source link

Single Writer Pattern #108

Closed tmasternak-infusion closed 9 years ago

tmasternak-infusion commented 9 years ago

Reading the documentation I found information that writes should be performed using Single Writer pattern. My understanding is that one of possible usages of AtomEventStore is persistence for Event Sourcing scenarios. Assuming my understanding is correct it is not clear to me how to achieve that with: a. single process/role writing to a store b. multiple processes/roles writing to a store

Finally is it possible to achieve optimistic concurrency on aggregate version with AtomEventStore?

ploeh commented 9 years ago

Thank you for writing. In an effort to answer your questions, I've added a document about the Single Writer pattern to the wiki.

Your question about optimistic concurrency should be answered already:

Since Optimistic Concurrency can't be guaranteed by all storage implementations, the clients have the responsibility to prevent concurrency conflicts.

(my emphasis)

tmasternak-infusion commented 9 years ago

Thank you very much for in depth explanation! It clarified a lot my understanding of AtomEventStore.