MongoDB on Azure for Developers
Mark Greenway
@markkgreenway
mgreenway@gmail.com
Follow me on twitter now
Beat the rush!!
Gold Sponsors
Platium Sponsors
What we will talk about
 Use Mongo db with C#
Patterns for data access / storage
What I won’t cover
Managing servers
Sharding
Massive scale
Absolutes
Why not cover that?
Dev Team Photo
My Biggest Collection (thus far)
NoSQL
No ACID –
Performance
Scaling
Simplicity
Not Only SQL
http://css.dzone.com/articles/how-acid-mongodb
Mongo itself
 Document Database
 Database
Collection
Document
Key
Value
 Single Threaded (its JS!)
Server side JS ...
Offerings
C# Accessdemo
Story Time!
Schema
Uptime Robot
www.uptimerobot.com
So That’s how I
used mongo on a
project
Curveball
Map
Reduce
Finalize
C#
PHP internals person, author of
Xdebug; OpenStreetMap and
mapping enthusiast. Works as
PHP Engineer/Evangelist for
MongoDB...
Normalizing Data
Familiar with this with SQL
Benefits
Drawbacks
Scenario
Author -- Books
De normalizing Data
Point in Time Data
Things that will be accessed together
Tags
Join tables
Documents should try to...
{
"_id": {
"$uuid": "419265a2-f31e-7f06-f8be-1b1649c3db8f"
},
"PolicyId": 41662,
"TagId": 33,
"TagName": "Engines",
"d": f...
C# Access
C# Constructor with
Factory
Demo
Web API with SQL
My way - CRUD start
Web API with Mongo
Side by Side
Giant page of numbers
SQL Mongo
Get all Get 1 Create Update Get all Get 1 Create Update
1 84 79 257 261 66 49 51 81
2 81 7...
0
100
200
300
400
Get all Get 1 Create Update
Orange SQL - Blue Mongo
Average Percent Faster
Get all Get 1 Create Update
28% 31% 75% 74%
References
 http://docs.mongodb.org/manual/
 50 Tips and Tricks for MongoDB Developers by Kristina
Chodorow (O’Reilly). ...
MongoDB on Azure
for Developers
Mark Greenway
@markkgreenway
mgreenway@gmail.com
August 11th – 13th 2014
Same Place, Same Time
The children who benefit from
our camp have medical
conditions including arthritis,
asthma, cancer, bleeding
disorders, ga...
Extra Time?
Name a scenario
normalize vs. de-normalize data
Mongo db on azure for developers
Mongo db on azure for developers
Mongo db on azure for developers
Mongo db on azure for developers
Mongo db on azure for developers
Mongo db on azure for developers
Mongo db on azure for developers
Upcoming SlideShare
Loading in...5
×

Mongo db on azure for developers

933

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
933
On Slideshare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • No Joins
  • Infrastructure\MongoStuff.csControllers\StandardsControllers.cs
  • Infrastructure\MongoStuff.csControllers\StandardsControllers.cs
  • Mongo db on azure for developers

    1. 1. MongoDB on Azure for Developers Mark Greenway @markkgreenway mgreenway@gmail.com Follow me on twitter now Beat the rush!!
    2. 2. Gold Sponsors Platium Sponsors
    3. 3. What we will talk about  Use Mongo db with C# Patterns for data access / storage
    4. 4. What I won’t cover Managing servers Sharding Massive scale Absolutes
    5. 5. Why not cover that?
    6. 6. Dev Team Photo
    7. 7. My Biggest Collection (thus far)
    8. 8. NoSQL No ACID – Performance Scaling Simplicity Not Only SQL http://css.dzone.com/articles/how-acid-mongodb
    9. 9. Mongo itself  Document Database  Database Collection Document Key Value  Single Threaded (its JS!) Server side JS execution  BSON  Capped Collections
    10. 10. Offerings
    11. 11. C# Accessdemo
    12. 12. Story Time!
    13. 13. Schema
    14. 14. Uptime Robot www.uptimerobot.com
    15. 15. So That’s how I used mongo on a project
    16. 16. Curveball
    17. 17. Map
    18. 18. Reduce
    19. 19. Finalize
    20. 20. C#
    21. 21. PHP internals person, author of Xdebug; OpenStreetMap and mapping enthusiast. Works as PHP Engineer/Evangelist for MongoDB at 10gen. derickrethans.nl
    22. 22. Normalizing Data Familiar with this with SQL Benefits Drawbacks Scenario Author -- Books
    23. 23. De normalizing Data Point in Time Data Things that will be accessed together Tags Join tables Documents should try to be self sufficient Embed for Atomicity
    24. 24. { "_id": { "$uuid": "419265a2-f31e-7f06-f8be-1b1649c3db8f" }, "PolicyId": 41662, "TagId": 33, "TagName": "Engines", "d": false, "l": false, "CurrentVersion": { "Filename": "Marine Jan10.xls", "MD5": "67F6D6C62478F0482B1C1006CD2ABC83", "C": { "$date": "2010-01-14T19:22:36.407Z" }, "Usr": "tbridges", "ContentType": "application/x-msexcel", "Uri": "8578", "uploading": false }, "Versions": [ { "Filename": " Marine Jan10 (1).xls ", "MD5": "8C53285C42B0D8DCEAEAA63125DC248D", "C": { "$date": "2010-02-02T13:31:40.970Z" }, "Usr": "kcameron", "ContentType": "application/x-msexcel", "Uri": "9389", "uploading": false }, { "Filename": "Marine Jan10.xls ", "MD5": "67F6D6C62478F0482B1C1006CD2ABC83", "C": { "$date": "2010-01-14T19:22:36.407Z" }, "Usr": "tbridges", "ContentType": "application/x-msexcel", "Uri": "8578", "uploading": false }, { "Filename": " Marine Jan10(1).xls ", "MD5": "17975AD7D2375CA0FB02F1CAA067CFCC", "C": { "$date": "2010-01-22T15:49:24.500Z" }, "Usr": "kcameron", "ContentType": "application/x-msexcel", "Uri": "8945", "uploading": false } ]
    25. 25. C# Access
    26. 26. C# Constructor with Factory Demo
    27. 27. Web API with SQL My way - CRUD start
    28. 28. Web API with Mongo
    29. 29. Side by Side
    30. 30. Giant page of numbers SQL Mongo Get all Get 1 Create Update Get all Get 1 Create Update 1 84 79 257 261 66 49 51 81 2 81 77 165 157 60 50 46 49 3 68 68 165 176 53 49 46 47 4 79 74 254 197 52 47 50 54 5 87 85 240 302 49 51 48 52 6 75 62 166 164 50 48 51 46 7 66 60 162 169 52 47 51 46 8 80 68 156 191 61 46 48 55 9 112 69 226 184 85 48 51 48 10 71 66 173 201 50 50 48 47
    31. 31. 0 100 200 300 400 Get all Get 1 Create Update Orange SQL - Blue Mongo
    32. 32. Average Percent Faster Get all Get 1 Create Update 28% 31% 75% 74%
    33. 33. References  http://docs.mongodb.org/manual/  50 Tips and Tricks for MongoDB Developers by Kristina Chodorow (O’Reilly). Copyright 2011 Kristina Chodorow, 978-1- 449-30461-4.  MongoDB Applied Design Patterns by Rick Copeland (O’Reilly). Copyright 2013 Richard D. Copeland, Jr., 978-1-449-34004-9.
    34. 34. MongoDB on Azure for Developers Mark Greenway @markkgreenway mgreenway@gmail.com
    35. 35. August 11th – 13th 2014 Same Place, Same Time
    36. 36. The children who benefit from our camp have medical conditions including arthritis, asthma, cancer, bleeding disorders, gastrointestinal disease, heart disease, and kidney disease. We’ve designed every detail of the camp experience to help our campers leave sickness behind while they’re here.
    37. 37. Extra Time? Name a scenario normalize vs. de-normalize data
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×