More Related Content
Similar to Event sourcing (20)
More from Bryan Reinero (7)
Event sourcing
- 50. THANKS!
{ Name: ‘Bryan Reinero’,
Title: ‘Developer Advocate’,
Twitter: ‘@blimpyacht’,
Email: ‘bryan@mongdb.com’ }
- 51. {
"_id" : ObjectId("565f1dd8d4c6d9a90a9a16ce"),
"country" : "USA",
"crew" : "Ed White",
"vehicle" : "Gemini IV",
"date" : "6/3/65",
"duration" : "0:36",
"purpose" : "First U.S. EVA. Used HHMU and took photos,
"minutes" : 36
}
{
"_id" : ObjectId("565f1dd8d4c6d9a90a9a16cf"),
"country" : "USA",
"crew" : "Eugene Cernan",
"vehicle" : "Gemini IX-A",
"date" : "6/5/66",
"duration" : "2:07",
"purpose" : "Inadequate restraints stiff 25ft umbilical and high workloads….,
"minutes" : 127
}
{
"_id" : ObjectId("565f1dd8d4c6d9a90a9a16d0"),
"country" : "USA",
"crew" : "Mike Collins",
"vehicle" : "Gemini X",
"date" : "7/19/66",
"duration" : "0:50",
- 52. db.EVA.aggregate(
[
{ "$match": { "crew" : /David Scott/ } },
{ "$project": {
_id: 0,
name: { $literal: "David Scott" },
minutes: 1, }
},
{ "$group": { _id: "$name", total: { $sum: "$minutes" } } }
]
);
{ "_id" : "David Scott", "total" : 1200 }
Editor's Notes
- http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-84-75-metablogapi/3808.image_5F00_14B6A83B.png
https://media.licdn.com/media/p/5/005/09f/2d8/3c9f5a5.jpg
- http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-84-75-metablogapi/3808.image_5F00_14B6A83B.png
https://media.licdn.com/media/p/5/005/09f/2d8/3c9f5a5.jpg
- http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-84-75-metablogapi/3808.image_5F00_14B6A83B.png
https://media.licdn.com/media/p/5/005/09f/2d8/3c9f5a5.jpg
- http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-84-75-metablogapi/3808.image_5F00_14B6A83B.png
https://media.licdn.com/media/p/5/005/09f/2d8/3c9f5a5.jpg
- Temporal Queries
Replay or Rebuild
Hard to Attack
- Temporal Queries
Replay or Rebuild
Hard to Attack
- Temporal Queries
Replay or Rebuild
Hard to Attack
- Temporal Queries
Replay or Rebuild
Hard to Attack
- Temporal Queries
Replay or Rebuild
Hard to Attack
- Checkpoints
- Checkpoints
- . I.E. terms always have the same meaning and the model contains no contradictory rules.