MongoDB: The Ultimate Backpack for the Cloud

22
The Ultimate Backpack for the Cloud MongoDB

description

For the last 3 decades relational databases have ruled the development landscape. Whenever a developer needed to store significant amounts of data they turned to their trusty RDBMS. However, like everything in the development world, the reign of the RDBMS is being threatened by a new set of database leaders shouting the NoSQL mantra. MongoDB is one of the leaders on the frontline of the NoSQL revolution, and it is quickly gaining a large following and challenging relational databases for control of the cloud. This presentation was given at ThatConference.com 2014

Transcript of MongoDB: The Ultimate Backpack for the Cloud

Page 1: MongoDB: The Ultimate Backpack for the Cloud

The Ultimate Backpack for the Cloud

MongoDB

Page 2: MongoDB: The Ultimate Backpack for the Cloud

About Me

Joe BrinkmanCo-Founder & Technical Fellow

DNN Corp.Web: www.dnnsoftware.com

Blog: www.theaccidentalgeek.comTwitter: @jbrinkman

Page 3: MongoDB: The Ultimate Backpack for the Cloud

About Me

Page 4: MongoDB: The Ultimate Backpack for the Cloud

About Me

Page 5: MongoDB: The Ultimate Backpack for the Cloud

About Me

Page 6: MongoDB: The Ultimate Backpack for the Cloud

About Me

Page 7: MongoDB: The Ultimate Backpack for the Cloud

DNN / Proprietary and Confidential. All Rights Reserved.7

Agenda

• NoSQL Overview

• Getting Started

• Reliability and Scalability

• MongoDB for .Net Devs

Page 8: MongoDB: The Ultimate Backpack for the Cloud

DNN / Proprietary and Confidential. All Rights Reserved.8

Why NoSQL?

Page 9: MongoDB: The Ultimate Backpack for the Cloud

DNN / Proprietary and Confidential. All Rights Reserved.9

NoSQL != No SQL

Relational DB Document DB

Page 10: MongoDB: The Ultimate Backpack for the Cloud

DNN / Proprietary and Confidential. All Rights Reserved.10

Common Characteristics

Schemaless

Cloud friendly

Eventually Consistent

Page 11: MongoDB: The Ultimate Backpack for the Cloud

DNN / Proprietary and Confidential. All Rights Reserved.11

Key-ValueDocument

Graph

Wide Column

NoSQL Neighborhoods

Page 12: MongoDB: The Ultimate Backpack for the Cloud

12 DNN / Proprietary and Confidential. All Rights Reserved.

D E M OGetting Started

Page 13: MongoDB: The Ultimate Backpack for the Cloud

DNN / Proprietary and Confidential. All Rights Reserved.13

Reliable and Scalable

Rep

lica

Set

s • Master-Slave• Auto-failover• Write to primary• Read primary

or secondary

Sha

rdin

g • Distribute reads/writes

• Shard key is critical

• Each shard can be a replica set

Page 14: MongoDB: The Ultimate Backpack for the Cloud

DNN / Proprietary and Confidential. All Rights Reserved.14

Replica Sets

Primary

Secondary Secondary

Page 15: MongoDB: The Ultimate Backpack for the Cloud

DNN / Proprietary and Confidential. All Rights Reserved.15

Replica Sets

Primary

Secondary Primary

Page 16: MongoDB: The Ultimate Backpack for the Cloud

DNN / Proprietary and Confidential. All Rights Reserved.16

Replica Sets

Secondary

Secondary Primary

Page 17: MongoDB: The Ultimate Backpack for the Cloud

17 DNN / Proprietary and Confidential. All Rights Reserved.

D E M OReplica Sets

Page 18: MongoDB: The Ultimate Backpack for the Cloud

DNN / Proprietary and Confidential. All Rights Reserved.18

Sharding

MongoS

MongoD(ReplicaSet)

MongoD(ReplicaSet)

MongoD(ReplicaSet)

Page 19: MongoDB: The Ultimate Backpack for the Cloud

DNN / Proprietary and Confidential. All Rights Reserved.19

Sharding

MongoS

MongoD(ReplicaSet)

MongoD(ReplicaSet)

MongoD(ReplicaSet)

MongoD(Config Cluster)

Page 20: MongoDB: The Ultimate Backpack for the Cloud

DNN / Proprietary and Confidential. All Rights Reserved.20

MongoDB for .Net Devs

• Idiomatic Drivers

› C, C++, C#, Go, Java, Node.js, Perl, PHP, Python, Ruby, Scala

• C#

› Your classes or BSON Documents› Custom CRUD API (prior 1.8) or use LINQ (1.8+)› BSON Documents for Aggregation framework

Page 21: MongoDB: The Ultimate Backpack for the Cloud

21 DNN / Proprietary and Confidential. All Rights Reserved.

D E M OMongoDB for .Net

Page 22: MongoDB: The Ultimate Backpack for the Cloud

DNN / Proprietary and Confidential. All Rights Reserved.22

References

• http://www.mongodb.org

• http://robomongo.org/

• http://docs.mongodb.org/manual/