mongodb: the ultimate backpack for the cloud
Post on 10-May-2015
569 Views
Preview:
DESCRIPTION
TRANSCRIPT
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/
top related