DomainBlocks / domain-blocks

A suite of libraries to assist with domain-driven design when using event sourcing
MIT License
4 stars 1 forks source link

Tidy up ambiguity between "stream version" and "expected version" #107

Open daniel-smith opened 1 year ago

daniel-smith commented 1 year ago

Right now, what we call StreamVersion is what ES call StreamRevision and SQLStreamStore call `ExpectedStreamVersion.

To represent a stream version, ES have StreamPosition and SQLStreamStore have StreamVersion.

ES actually represent these types as value objects - which is a good approach to consider for DomainBlocks.