get-eventually / eventually-rs

Event Sourcing for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Merge eventually::ReadStore and eventually::WriteStore in a single eventually::Store trait

ar3s3ru opened this issue · comments

The current eventually::store module has two separate traits to segregate responsibilities:

  • ReadStore, allowing to stream events from the event store back to the application
  • WriteStore, allowing to append new events from the application to the event store

However, it seems like there's no real benefit having such a functionalities split.

Consider merging the two traits in a single eventually::Store trait.