/event-sourcing-cqrs

Event sourcing and CQRS with pinball

Primary LanguageJavaScript

Intro

Example of Event Sourcing and CQRS with pinball.js

JavaScript implementation of https://github.com/cer/event-sourcing-examples

Install node >= v4.0.0 (https://nodejs.org).

git clone event-sourcing-cqrs
npm install
node index.js
# or
DEBUG=* node index.js

Todo

  • add sqlite as event store
  • add event subscribers
  • add rolling snapshots
  • add view table
  • add unique constrain with external table (email of bank account)
  • add email example (side effect executed only one time)
  • create transaction for listener offset and event store update (SELECT FOR UPDATE)
  • implement binlog listener for aurora/mysql

References

https://msdn.microsoft.com/en-us/library/dn589792.aspx event sourcing and CQRS
https://github.com/cer/event-sourcing-examples/wiki/DeveloperGuide example in Scala/Java