Mongo db as event store

1,080 views
937 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,080
On SlideShare
0
From Embeds
0
Number of Embeds
52
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Mongo db as event store

  1. 1. Alessandro MelchioriMongoDb as event storealessandro@codiceplastico.com
  2. 2. MongoDb as event store Alessandro Melchiori alessandro@codiceplastico.com{ "firstName": "Alessandro", "lastName": "Melchiori", "role": "software architect @ codiceplastico", "contacts": [ { "type": "email", "value": alessandro@codiceplastico.com }, { "type": "twitter", "value": "@amelchiori" }, { "type": "blog", "value":http://blog.codiceplastico.com/melkio } ]}
  3. 3. MongoDb as event store Alessandro Melchiori alessandro@codiceplastico.com• It’s really become clear to me in the last couple of years that we need a new building block and that is the Domain Events (Eric Evans)• State transition are an important part of our problem space and should be modeled within our domain (Greg Young)
  4. 4. MongoDb as event store Alessandro Melchiori alessandro@codiceplastico.com1 2 3 4 5 6 ... snapshot
  5. 5. MongoDb as event store Alessandro Melchiori alessandro@codiceplastico.com Domain Model Service Layer Write storagePresentation Layer Read storage
  6. 6. MongoDb as event store Alessandro Melchiori alessandro@codiceplastico.com LOCAL LOCALMEMBER 01 MEMBER 02 MEMBER 03 LOCAL
  7. 7. MongoDb as event store Alessandro Melchiori alessandro@codiceplastico.com{ "ts" : Timestamp(1363605458000, 2), "h" : NumberLong("4039405765251735075"), "v" : 2, "op" : "i", "ns" : "webdebs.Streams", "o" : { "HeadRevision" : 1, "SnapshotRevision" : 0, "Unsnapshotted" : 1, "_id" : BinData(3,"+KYFwLvnxkS8Lsuy6P562Q==") }}

×