Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mini training - EventStore

Mini training - EventStore

Mickael Metesreau

December 11, 2015
Tweet

More Decks by Mickael Metesreau

Other Decks in Programming

Transcript

  1. Append Only Model When you update or delete data you

    lose information Events are the result of decisions, they should be immutable
  2. Advantages No loss of information One source of true Go

    back in time Free audit logs Immutable data « Easy »migration Replay feature
  3. No Table but Event Streams No giant stream Partitions by

    aggregate Million of streams is normal 5000 - 10000 events before any snapshot
  4. Event Store Operations Append to a stream Read all or

    part of a stream Subscribe to a stream
  5. What About Queries? You don’t query on events but on

    appropriate read model There is no best storage AKA all database sucks One model can’t be good for all scenarios
  6. Clients HTTP Based on Atom feed HTTP content type negotiation

    HTTP persistent connection HTTP pipeline HTTP cache TCP .NET, Ruby, Java Really fast communication protocol