No commit activity in last 3 years
No release in over 3 years
Event Store for ruby with support for concurrent writers and snapshots
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 10.0
~> 3.0

Runtime

 Project Readme

TransactionEventStore

An extension of https://github.com/arkency/ruby_event_store with support for pessimistic locking and snapshots.

Implementations

  • Mongoid
  • Active Record coming soon

See Also

Snapshot Aggregate Root an "Aggregate Root" implementation using this event store.

API

Same as RubyEventStore::Client except the following additions

Snapshots

  • publish_snapshot - delegates to repository#create_snapshot
  • last_stream_snapshot - delegates to repository#last_stream_snapshot

Concurrent writers

  • with_lock method added, which delegates to repository#with_lock
  • notify_susbsribers method added, which exposes the exising event_broker#notify_subscribers function (this is used with_write_context to ensure event handlers aren't called until after the events are committed)

Unlimited queries

  • Event store reader methods (read_events_forward etc), that accept a count: parameter can be passed count: nil to disable limits