Upload
joe-brinkman
View
570
Download
1
Tags:
Embed Size (px)
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
Citation preview
The Ultimate Backpack for the Cloud
MongoDB
About Me
Joe BrinkmanCo-Founder & Technical Fellow
DNN Corp.Web: www.dnnsoftware.com
Blog: www.theaccidentalgeek.comTwitter: @jbrinkman
About Me
About Me
About Me
About Me
DNN / Proprietary and Confidential. All Rights Reserved.7
Agenda
• NoSQL Overview
• Getting Started
• Reliability and Scalability
• MongoDB for .Net Devs
DNN / Proprietary and Confidential. All Rights Reserved.8
Why NoSQL?
DNN / Proprietary and Confidential. All Rights Reserved.9
NoSQL != No SQL
Relational DB Document DB
DNN / Proprietary and Confidential. All Rights Reserved.10
Common Characteristics
Schemaless
Cloud friendly
Eventually Consistent
DNN / Proprietary and Confidential. All Rights Reserved.11
Key-ValueDocument
Graph
Wide Column
NoSQL Neighborhoods
12 DNN / Proprietary and Confidential. All Rights Reserved.
D E M OGetting Started
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
DNN / Proprietary and Confidential. All Rights Reserved.14
Replica Sets
Primary
Secondary Secondary
DNN / Proprietary and Confidential. All Rights Reserved.15
Replica Sets
Primary
Secondary Primary
DNN / Proprietary and Confidential. All Rights Reserved.16
Replica Sets
Secondary
Secondary Primary
17 DNN / Proprietary and Confidential. All Rights Reserved.
D E M OReplica Sets
DNN / Proprietary and Confidential. All Rights Reserved.18
Sharding
MongoS
MongoD(ReplicaSet)
MongoD(ReplicaSet)
MongoD(ReplicaSet)
DNN / Proprietary and Confidential. All Rights Reserved.19
Sharding
MongoS
MongoD(ReplicaSet)
MongoD(ReplicaSet)
MongoD(ReplicaSet)
MongoD(Config Cluster)
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
21 DNN / Proprietary and Confidential. All Rights Reserved.
D E M OMongoDB for .Net
DNN / Proprietary and Confidential. All Rights Reserved.22
References
• http://www.mongodb.org
• http://robomongo.org/
• http://docs.mongodb.org/manual/