An extension of https://github.com/arkency/ruby_event_store with support for pessimistic locking and snapshots.
- Mongoid
- Active Record coming soon
Snapshot Aggregate Root an "Aggregate Root" implementation using this event store.
Same as RubyEventStore::Client except the following additions
publish_snapshot
- delegates torepository#create_snapshot
last_stream_snapshot
- delegates torepository#last_stream_snapshot
with_lock
method added, which delegates torepository#with_lock
notify_susbsribers
method added, which exposes the exisingevent_broker#notify_subscribers
function (this is usedwith_write_context
to ensure event handlers aren't called until after the events are committed)
- Event store reader methods (
read_events_forward
etc), that accept acount:
parameter can be passedcount: nil
to disable limits