I recently felt in love with Rust.
To start using it in broader applications I first need to port my Go event sourcing framework (https://github.com/bloom42/goes) to Rust.
But as being new to Rust I have no idea where to start.
I’ve found this post (https://medium.com/capital-one-tech/building-an-event-sourcing-crate-for-rust-2c4294eea165) and this crate (https://github.com/pholactery/eventsourcing) which are very close to what I want to implement.
Here is more explicitly what I’m trying to achieve:
Aggregate to which we will execute
validate method is successful then we call the
build_event method which returns an
Event (trait ? other kind of generic ?).
we then call the
Event's method to our aggregate to update it’s state (or better, update a copy of the aggregate and return a new immutable one).
And finally the
Event is ‘dispatched’ by our
Dispatcher which have some
SyncReactors and some
Reactor registered for the specific event is called.
Any idea on how to implement this ?
For information, Here is the original article which describe this simplified event sourcing framework (https://kickstarter.engineering/event-sourcing-made-simple-4a2625113224)