SlideShare uma empresa Scribd logo
1 de 22
The Ultimate Backpack for the Cloud
MongoDB
About Me
Joe Brinkman
Co-Founder & Technical Fellow
DNN Corp.
Web: www.dnnsoftware.com
Blog: www.theaccidentalgeek.com
Twitter: @jbrinkman
About Me
About Me
About Me
About Me
Agenda
• NoSQL Overview
• Getting Started
• Reliability and Scalability
• MongoDB for .Net Devs
DNN / Proprietary and Confidential. All Rights Reserved.7
Why NoSQL?
DNN / Proprietary and Confidential. All Rights Reserved.8
NoSQL != No SQL
DNN / Proprietary and Confidential. All Rights Reserved.9
Relational DB Document DB
Common Characteristics
DNN / Proprietary and Confidential. All Rights Reserved.10
DNN / Proprietary and Confidential. All Rights Reserved.11
Key-Value
Document
Graph
Wide Column
NoSQL Neighborhoods
12 DNN / Proprietary and Confidential. All Rights Reserved.
D E M O
Getting Started
Reliable and Scalable
ReplicaSets
• Master-Slave
• Auto-failover
• Write to primary
• Read primary
or secondary
Sharding
• Distribute
reads/writes
• Shard key is
critical
• Each shard can
be a replica set
DNN / Proprietary and Confidential. All Rights Reserved.13
Replica Sets
DNN / Proprietary and Confidential. All Rights Reserved.14
Primary
Secondary Secondary
Replica Sets
DNN / Proprietary and Confidential. All Rights Reserved.15
Primary
Secondary Primary
Replica Sets
DNN / Proprietary and Confidential. All Rights Reserved.16
Secondary
Secondary Primary
17 DNN / Proprietary and Confidential. All Rights Reserved.
D E M O
Replica Sets
Sharding
DNN / Proprietary and Confidential. All Rights Reserved.18
MongoS
MongoD
(ReplicaSet)
MongoD
(ReplicaSet)
MongoD
(ReplicaSet)
Sharding
DNN / Proprietary and Confidential. All Rights Reserved.19
MongoS
MongoD
(ReplicaSet)
MongoD
(ReplicaSet)
MongoD
(ReplicaSet)
MongoD
(Config Cluster)
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
DNN / Proprietary and Confidential. All Rights Reserved.20
21 DNN / Proprietary and Confidential. All Rights Reserved.
D E M O
MongoDB for .Net
References
• http://www.mongodb.org
• http://robomongo.org/
• http://docs.mongodb.org/manual/
DNN / Proprietary and Confidential. All Rights Reserved.22

Mais conteúdo relacionado

Semelhante a MongoDB: The Ultimate Backpack for the Cloud

Redgate How to be Friends with Developers
Redgate How to be Friends with DevelopersRedgate How to be Friends with Developers
Redgate How to be Friends with Developers
Kellyn Pot'Vin-Gorman
 
Austin NoSQL 2011-07-06
Austin NoSQL 2011-07-06Austin NoSQL 2011-07-06
Austin NoSQL 2011-07-06
jimbojsb
 
The View - The top 30 Development tips
The View - The top 30 Development tipsThe View - The top 30 Development tips
The View - The top 30 Development tips
Bill Buchan
 

Semelhante a MongoDB: The Ultimate Backpack for the Cloud (20)

Deep Dive Into AWS DynamoDB
Deep Dive Into AWS DynamoDBDeep Dive Into AWS DynamoDB
Deep Dive Into AWS DynamoDB
 
Einführung in RavenDB
Einführung in RavenDBEinführung in RavenDB
Einführung in RavenDB
 
Practical Design Patterns for Building Applications Resilient to Infrastructu...
Practical Design Patterns for Building Applications Resilient to Infrastructu...Practical Design Patterns for Building Applications Resilient to Infrastructu...
Practical Design Patterns for Building Applications Resilient to Infrastructu...
 
CQRS recipes or how to cook your architecture
CQRS recipes or how to cook your architectureCQRS recipes or how to cook your architecture
CQRS recipes or how to cook your architecture
 
An Introduction to Amazon’s DynamoDB
An Introduction to Amazon’s DynamoDBAn Introduction to Amazon’s DynamoDB
An Introduction to Amazon’s DynamoDB
 
Polyglot Persistence - Two Great Tastes That Taste Great Together
Polyglot Persistence - Two Great Tastes That Taste Great TogetherPolyglot Persistence - Two Great Tastes That Taste Great Together
Polyglot Persistence - Two Great Tastes That Taste Great Together
 
How and when to use NoSQL
How and when to use NoSQLHow and when to use NoSQL
How and when to use NoSQL
 
Redgate How to be Friends with Developers
Redgate How to be Friends with DevelopersRedgate How to be Friends with Developers
Redgate How to be Friends with Developers
 
Austin NoSQL 2011-07-06
Austin NoSQL 2011-07-06Austin NoSQL 2011-07-06
Austin NoSQL 2011-07-06
 
The View - The top 30 Development tips
The View - The top 30 Development tipsThe View - The top 30 Development tips
The View - The top 30 Development tips
 
Scylla Summit 2018: How We Made Large Partition Scans Over Two Times Faster
Scylla Summit 2018: How We Made Large Partition Scans Over Two Times FasterScylla Summit 2018: How We Made Large Partition Scans Over Two Times Faster
Scylla Summit 2018: How We Made Large Partition Scans Over Two Times Faster
 
Azure doc db (slideshare)
Azure doc db (slideshare)Azure doc db (slideshare)
Azure doc db (slideshare)
 
AWS User Group October
AWS User Group OctoberAWS User Group October
AWS User Group October
 
Anatomy of a Spring Boot App with Clean Architecture - Spring I/O 2023
Anatomy of a Spring Boot App with Clean Architecture - Spring I/O 2023Anatomy of a Spring Boot App with Clean Architecture - Spring I/O 2023
Anatomy of a Spring Boot App with Clean Architecture - Spring I/O 2023
 
Getting started with Graph Databases & Neo4j
Getting started with Graph Databases & Neo4jGetting started with Graph Databases & Neo4j
Getting started with Graph Databases & Neo4j
 
How MongoDB is Being Used in China - Case Studies
How MongoDB is Being Used in China - Case StudiesHow MongoDB is Being Used in China - Case Studies
How MongoDB is Being Used in China - Case Studies
 
Minnebar 2013 - Scaling with Cassandra
Minnebar 2013 - Scaling with CassandraMinnebar 2013 - Scaling with Cassandra
Minnebar 2013 - Scaling with Cassandra
 
Drop the Pressure on your Production Server
Drop the Pressure on your Production ServerDrop the Pressure on your Production Server
Drop the Pressure on your Production Server
 
The Key to Effective Analytics: Fast-Returning Queries
The Key to Effective Analytics: Fast-Returning QueriesThe Key to Effective Analytics: Fast-Returning Queries
The Key to Effective Analytics: Fast-Returning Queries
 
Running MongoDB in the Cloud
Running MongoDB in the CloudRunning MongoDB in the Cloud
Running MongoDB in the Cloud
 

Mais de Joe Brinkman

Mais de Joe Brinkman (8)

AI: Your Personal Intern
AI: Your Personal InternAI: Your Personal Intern
AI: Your Personal Intern
 
Automate Builds and Deployments.pptx
Automate Builds and Deployments.pptxAutomate Builds and Deployments.pptx
Automate Builds and Deployments.pptx
 
Auth0 OOF Panama - Ignite Session
Auth0 OOF Panama - Ignite SessionAuth0 OOF Panama - Ignite Session
Auth0 OOF Panama - Ignite Session
 
Take Command of DNN
Take Command of DNNTake Command of DNN
Take Command of DNN
 
DNN Connect 2015 Keynote
DNN Connect 2015 KeynoteDNN Connect 2015 Keynote
DNN Connect 2015 Keynote
 
Where are we going DNNCon Keynote
Where are we going   DNNCon KeynoteWhere are we going   DNNCon Keynote
Where are we going DNNCon Keynote
 
Get involved in Open Source
Get involved in Open SourceGet involved in Open Source
Get involved in Open Source
 
Making open source work
Making open source workMaking open source work
Making open source work
 

Último

%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Último (20)

%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 

MongoDB: The Ultimate Backpack for the Cloud

  • 1. The Ultimate Backpack for the Cloud MongoDB
  • 2. About Me Joe Brinkman Co-Founder & Technical Fellow DNN Corp. Web: www.dnnsoftware.com Blog: www.theaccidentalgeek.com Twitter: @jbrinkman
  • 7. Agenda • NoSQL Overview • Getting Started • Reliability and Scalability • MongoDB for .Net Devs DNN / Proprietary and Confidential. All Rights Reserved.7
  • 8. Why NoSQL? DNN / Proprietary and Confidential. All Rights Reserved.8
  • 9. NoSQL != No SQL DNN / Proprietary and Confidential. All Rights Reserved.9 Relational DB Document DB
  • 10. Common Characteristics DNN / Proprietary and Confidential. All Rights Reserved.10
  • 11. DNN / Proprietary and Confidential. All Rights Reserved.11 Key-Value Document Graph Wide Column NoSQL Neighborhoods
  • 12. 12 DNN / Proprietary and Confidential. All Rights Reserved. D E M O Getting Started
  • 13. Reliable and Scalable ReplicaSets • Master-Slave • Auto-failover • Write to primary • Read primary or secondary Sharding • Distribute reads/writes • Shard key is critical • Each shard can be a replica set DNN / Proprietary and Confidential. All Rights Reserved.13
  • 14. Replica Sets DNN / Proprietary and Confidential. All Rights Reserved.14 Primary Secondary Secondary
  • 15. Replica Sets DNN / Proprietary and Confidential. All Rights Reserved.15 Primary Secondary Primary
  • 16. Replica Sets DNN / Proprietary and Confidential. All Rights Reserved.16 Secondary Secondary Primary
  • 17. 17 DNN / Proprietary and Confidential. All Rights Reserved. D E M O Replica Sets
  • 18. Sharding DNN / Proprietary and Confidential. All Rights Reserved.18 MongoS MongoD (ReplicaSet) MongoD (ReplicaSet) MongoD (ReplicaSet)
  • 19. Sharding DNN / Proprietary and Confidential. All Rights Reserved.19 MongoS MongoD (ReplicaSet) MongoD (ReplicaSet) MongoD (ReplicaSet) MongoD (Config Cluster)
  • 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 DNN / Proprietary and Confidential. All Rights Reserved.20
  • 21. 21 DNN / Proprietary and Confidential. All Rights Reserved. D E M O MongoDB for .Net
  • 22. References • http://www.mongodb.org • http://robomongo.org/ • http://docs.mongodb.org/manual/ DNN / Proprietary and Confidential. All Rights Reserved.22

Notas do Editor

  1. RDBMS designed to run on single machine – naturally leads to scale up Cloud is designed to run applications on multiple commodity machines NoSQL originated with Google and Amazon from the need to be able operate in the cloud
  2. RDBMSs focus on normalized tables and relationships NoSQL dbs focus on performance, so denormalize data and minimize relationships
  3. Schemaless – Misnomer - Schema not enforced by db. Schema must be managed by application Eventually Consistent – Initial write is fast. Updating indexes and replicating data takes time. Cloud friendly – The Cloud is optimized for scale-out. So are NoSQL dbs. Replication and sharding designed to take advantage of scale out.
  4. Key-value – Single index, one or more values. Often optimized for use as distributed cache. Column Store – Data is stored on disk by column rather than by row. Allows for large number of columns in a record. Queries often pull small subset of columns. Document store – Data stored as single document or object. Most