尊敬的 微信汇率:1円 ≈ 0.046078 元 支付宝汇率:1円 ≈ 0.046168元 [退出登录]
SlideShare a Scribd company logo
1
Big Data: MongoDB Workshop
2
Content
▪ MongoDB Intro
▪ MongoDB @VRT by Chris
▪ MongoDB 2.6: What is new
▪ Break
▪ Certification by Tim
▪ Online Courses MongoDB / Hadoop and What next
3
MongoDB Intro
▪ A new world
▪ NoSQL
▪ What is MongoDB
▪ MongoDB Architecture
4
A New World
▪ New Apps
The applications serving, generating and interfacing with data have changed. Big Data,
SaaS, social and mobile apps are the new norm.
▪ New Data Types
New applications, users and inputs demand new types of data, like unstructured, semi-
structured and polymorphic data.
▪ New Data Volumes
Data volumes were once smaller, constrained and predictable. Today organizations must be
prepared to support millions of users, thousands of queries per second and hundreds of
terabytes of data.
▪ New Development Methods
The methods we use to build applications have changed. With increasingly competitive
markets and the need to adapt constantly, iterative development has become the standard.
▪ New Architectures
The infrastructure on which we store data has changed. Companies are leveraging cloud
computing, commodity hardware and virtualization.
MongoDB was designed for how we build and run applications today.
55
NoSQL
6
NoSQL
▪ Wide variety of different database techonologies
▪ Designed to deal with new issues arising with data
- Rise in volume of data stored
- Frequency in which this data is accessed
- Performance and Processing Needs
What is NoSQL
7
NoSQL
▪ Document databases
- Pair each key with a complex data structure known as a document.
Documents can contain: key-value pairs, key-array pairs and even nested
documents.
▪ Graph stores
- Store information about networks, such as social connections.
▪ Key-value stores
- simplest NoSQL databases.
- every single item in the database is stored as an attribute name (or "key"),
together with its value.
▪ Wide-column stores
- Optimized for queries over large datasets
- Store columns of data together, instead of rows.
NoSQL datatypes
8
The benefits of NoSQL
▪ More Scaleable
▪ More performance
▪ Their data model addresses several issues a relational model is not
designed to address
- Large volumes of structured, semi-structured, and unstructured data
- Agile sprints, quick iteration, and frequent code pushes
- Object-oriented programming that is easy to use and flexible
- Efficient, scale-out architecture instead of expensive, monolithic
architecture
9
The benefits of NoSQL
▪ Dynamic Schemas
- Agile development approach
▪ Auto Sharding
- Application does not need to be aware of server composition
- Cloud
▪ Replication
- Most support automatic replication
- High availability and better disaster recovery
▪ Integrated Caching
- On relational DB does not improve writes
1010
MongoDB
11
What is MongoDB
▪ Open Source Database
▪ Used by companies of all sizes
▪ Agile database
▪ With functionality of traditional databases:
- Full query language
- Consistency
- Secondary Indexes
▪ Built for:
- Scalability
- Performance
- High Availability
▪ NoSQL
1212
MongoDB
Architecture
13
MongoDB Architecture
▪ Document Data Model
▪ Rich Query Model
▪ Idiomatic Drivers
▪ Horizontal Scalability
▪ High Availability
▪ In-Memory Performance
▪ Flexibility
Feature Overview
14
MongoDB Architecture
▪ Data as Documents
- Stored in BSON (Binary Json)
- Collections (similar like a table tables)
- Tends to have all data for a given record in a single document
▪ Dynamic Schema
- Documents can vary in structure
- Fields can vary from document to document
- Documents are self-describing
- New fields, collections can be created without affecting all other documents
in the system, without updating a central system catalog and without
taking the system offline
MongoDB Data Model
15
MongoDB Architecture
▪ Idiomatic Drivers
- MongoDB provides native drivers for all popular programming languages
and frameworks to make development natural.
- Supported drivers include Java, .NET, Ruby, PHP, JavaScript, node.js,
Python, Perl, PHP, Scala and others.
▪ Query Types
- MongoDB supports many types of queries. A query may return a document
or a subset of specific fields within the document.
▪ Key-Value queries: on alue of a specific field
▪ Range queries: on inequalities (greater then, smaller then …)
▪ Geospatial queries: on proximity criteria
▪ Text Search queries: on relevance order based on text arguments
▪ Aggregation Framework queries: like group by statements
▪ MapReduce Queries: complex data processing expressed in JavaScript
MongoDB Query Model
16
MongoDB Architecture
▪ Indexing
- Many types of indexes on any field in the document
- Improve performance of some operations by orders of magnitued
- Has associated costs in the form of:
▪ Slower writes
▪ Disk usage
▪ Memory Usage
MongoDB Query Model
17
MongoDB Architecture
▪ Auto-Sharding
- Distributes data across multiple physical partitions called shards.
- Allows MongoDB deployments to address the hardware limitations of a
single server, such as bottlenecks in RAM or disk I/O, without adding
complexity to the application.
▪ Sharding is transparent to applications:
- Applications issue requests to query routers which sends that query to the
appropriate shards
MongoDB Data Management
18
MongoDB Architecture
▪ Transaction Model
- ACID compliant at the document level. Ensures complete isolation as a
document is updated; any errors cause the operation to roll back and
clients receive a consistent view of the document
- This is the same model used by many traditional relational databases to
provide durability guarantees.
- As a distributed system: additional flexibility in enabling users to achieve
their desired durability goals by controlling how write operations are
persisted across replicas.
MongoDB Consistency & Durability
19
MongoDB Architecture
▪ Replica Sets
- MongoDB maintains multiple copies of data called replica sets
- A fully self-healing shard that helps prevent database downtime.
- Replica failover is fully automated,
- The number of replicas in a MongoDB replica set is configurable,
- A larger number of replicas provides increased data durability and
protection against database downtime (e.g., in case of multiple machine
failures, rack failures, data center failures, or network partitions).
- Optionally, operations can be configured to write to multiple replicas before
returning to the application, thereby providing functionality that is similar to
synchronous replication.
- Replica sets also provide operational flexibility by providing a way to
upgrade hardware and software without requiring the database to go
offline.
MongoDB Consistency & Durability
20
MongoDB Architecture
▪ In-Memory Performance with On-Disk Capacity
- A fully self-healing shard that helps prevent database downtime.
- Extensive use of RAM to speed up database operations.
▪ Reading data from memory is measured in nanoseconds, whereas reading data
from spinning disk is measured in milliseconds; reading from memory is
approximately 100,000 times faster than reading data from disk.
- All data is read and manipulated through memory-mapped files. Data that is
not accessed is not loaded into RAM.
- While it is not required that all data fit in RAM, it should be the goal of the
deployment team that indexes and all data that is frequently accessed
should fit in RAM.
- If the volume of data that is frequently accessed exceeds the capacity of a
single machine => Automatic Sharding.
- No need for a separate caching layer.
MongoDB Consistency & Durability
2121
MongoDB
Scale & Use Cases
22
MongoDB Scale
▪ 30 of the world’s 100 largest organizations use MongoDB.
▪ Scale
- Over 100 organizations run clusters with more than 100 nodes. Some
clusters exceed 1,000 nodes.
- Deployments like: Yandex
▪ Velocity
- Many clusters deliver hundreds of thousands of operations per second
(combined read and write).
- Deployments like: Foursquare
▪ Volume
- Clusters with hundreds of terabytes, some store multiple petabytes of data.
- Over 150 clusters exceed 1 billion documents in size. Many with more than
100 billion documents.
- Deployments like: Craigslist
23
MongoDB Use Case
▪ Why move?
- Original architecture relied on relational DB
- Too much traffic for 1 machine
▪ Why MongoDB
- Auto-sharding to scale high-traffic and fast-growing application
- Geo-indexing for easy querying of location-based data
- Dramatically simplified data model
Foursquary
24
MongoDB Use Case
▪ In today’s regulatory environment, there are two constants about
compliance:
- requirements are changing
- the volume of data to manage is immense.
▪ For Craigslist, the popular classifieds and job posting community that
serves 570 cities in 50 countries, this means:
- Having to archive years of accumulated data. (1.5 million new classified
ads posted every day)
- Must be able to query and report on these archives at runtime.
▪ Historically:
- MySQL Cluster
- Simple schema change on their vast archive took months to complete,
preventing them from pushing new features.
Craigslist 1
25
MongoDB Use Case
▪ Flexibility
- Each post and its metadata in a single document
- Schema changes with little cost
▪ Scalability and Availability
- Can to scale horizontaly across commodity hardware without having to
write and maintain complex, custom sharding code
- Craigslist’s initial MongoDB deployment was designed to hold over 5 billion
documents and 10TB of data.
- MongoDB’s support for automated failover of nodes via replica sets was
another big win. In the previous system it was a manual effort.
▪ Ease of Use
▪ Proven, Supported Technology
- Compared to the other NoSQL options, MongoDB is broadly-used
technology with many major deployments.
Craigslist 2
2626
Questions ?

More Related Content

What's hot

Basics of MongoDB
Basics of MongoDB Basics of MongoDB
Basics of MongoDB
Habilelabs
 
NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
Mohammed Fazuluddin
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
Filip Ilievski
 
Introduction to mongodb
Introduction to mongodbIntroduction to mongodb
Introduction to mongodb
neela madheswari
 
Mongodb basics and architecture
Mongodb basics and architectureMongodb basics and architecture
Mongodb basics and architecture
Bishal Khanal
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
PolarSeven Pty Ltd
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
Ravi Teja
 
NoSQL databases - An introduction
NoSQL databases - An introductionNoSQL databases - An introduction
NoSQL databases - An introduction
Pooyan Mehrparvar
 
The Basics of MongoDB
The Basics of MongoDBThe Basics of MongoDB
The Basics of MongoDB
valuebound
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
Harri Kauhanen
 
Introduction to NoSQL Databases
Introduction to NoSQL DatabasesIntroduction to NoSQL Databases
Introduction to NoSQL Databases
Derek Stainer
 
What is NoSQL and CAP Theorem
What is NoSQL and CAP TheoremWhat is NoSQL and CAP Theorem
What is NoSQL and CAP Theorem
Rahul Jain
 
MongoDB
MongoDBMongoDB
MongoDB
nikhil2807
 
Mongodb
MongodbMongodb
9. Document Oriented Databases
9. Document Oriented Databases9. Document Oriented Databases
9. Document Oriented Databases
Fabio Fumarola
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
Marin Dimitrov
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
Suvradeep Rudra
 
Mongo DB Presentation
Mongo DB PresentationMongo DB Presentation
Mongo DB Presentation
Jaya Naresh Kovela
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databases
James Serra
 
Sharding Methods for MongoDB
Sharding Methods for MongoDBSharding Methods for MongoDB
Sharding Methods for MongoDB
MongoDB
 

What's hot (20)

Basics of MongoDB
Basics of MongoDB Basics of MongoDB
Basics of MongoDB
 
NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 
Introduction to mongodb
Introduction to mongodbIntroduction to mongodb
Introduction to mongodb
 
Mongodb basics and architecture
Mongodb basics and architectureMongodb basics and architecture
Mongodb basics and architecture
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
NoSQL databases - An introduction
NoSQL databases - An introductionNoSQL databases - An introduction
NoSQL databases - An introduction
 
The Basics of MongoDB
The Basics of MongoDBThe Basics of MongoDB
The Basics of MongoDB
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 
Introduction to NoSQL Databases
Introduction to NoSQL DatabasesIntroduction to NoSQL Databases
Introduction to NoSQL Databases
 
What is NoSQL and CAP Theorem
What is NoSQL and CAP TheoremWhat is NoSQL and CAP Theorem
What is NoSQL and CAP Theorem
 
MongoDB
MongoDBMongoDB
MongoDB
 
Mongodb
MongodbMongodb
Mongodb
 
9. Document Oriented Databases
9. Document Oriented Databases9. Document Oriented Databases
9. Document Oriented Databases
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
 
Mongo DB Presentation
Mongo DB PresentationMongo DB Presentation
Mongo DB Presentation
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databases
 
Sharding Methods for MongoDB
Sharding Methods for MongoDBSharding Methods for MongoDB
Sharding Methods for MongoDB
 

Viewers also liked

Redis And python at pycon_2011
Redis And python at pycon_2011Redis And python at pycon_2011
Redis And python at pycon_2011
sunilar0ra
 
Responsive web - CC FE & UX
Responsive web -  CC FE & UXResponsive web -  CC FE & UX
Responsive web - CC FE & UX
JWORKS powered by Ordina
 
Meteor - JOIN 2015
Meteor - JOIN 2015Meteor - JOIN 2015
Meteor - JOIN 2015
JWORKS powered by Ordina
 
Batch Processing - A&BP CC
Batch Processing - A&BP CCBatch Processing - A&BP CC
Batch Processing - A&BP CC
JWORKS powered by Ordina
 
Mongodb @ vrt
Mongodb @ vrtMongodb @ vrt
Clean Code - A&BP CC
Clean Code - A&BP CCClean Code - A&BP CC
Clean Code - A&BP CC
JWORKS powered by Ordina
 
Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014
JWORKS powered by Ordina
 
mwpc gas gain report
mwpc gas gain reportmwpc gas gain report
mwpc gas gain report
Andrew Schick
 
Microservices with Netflix OSS & Hypermedia APIs - JavaDay Kiev
Microservices with Netflix OSS & Hypermedia APIs - JavaDay KievMicroservices with Netflix OSS & Hypermedia APIs - JavaDay Kiev
Microservices with Netflix OSS & Hypermedia APIs - JavaDay Kiev
JWORKS powered by Ordina
 
Big data document and graph d bs - couch-db and orientdb
Big data  document and graph d bs - couch-db and orientdbBig data  document and graph d bs - couch-db and orientdb
Big data document and graph d bs - couch-db and orientdb
JWORKS powered by Ordina
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
JWORKS powered by Ordina
 
Spring REST Docs: Documenting RESTful APIs using your tests - Devoxx
Spring REST Docs: Documenting RESTful APIs using your tests - DevoxxSpring REST Docs: Documenting RESTful APIs using your tests - Devoxx
Spring REST Docs: Documenting RESTful APIs using your tests - Devoxx
JWORKS powered by Ordina
 
Unit testing - A&BP CC
Unit testing - A&BP CCUnit testing - A&BP CC
Unit testing - A&BP CC
JWORKS powered by Ordina
 
Hadoop bootcamp getting started
Hadoop bootcamp getting startedHadoop bootcamp getting started
Hadoop bootcamp getting started
JWORKS powered by Ordina
 
An introduction to Cloud Foundry
An introduction to Cloud FoundryAn introduction to Cloud Foundry
An introduction to Cloud Foundry
JWORKS powered by Ordina
 
SAP SuccessFactors With BGBS MENA
SAP SuccessFactors With BGBS MENASAP SuccessFactors With BGBS MENA
SAP SuccessFactors With BGBS MENA
Darem Alkhayer
 
AngularJS Basics and Best Practices - CC FE &UX
AngularJS Basics and Best Practices - CC FE &UXAngularJS Basics and Best Practices - CC FE &UX
AngularJS Basics and Best Practices - CC FE &UX
JWORKS powered by Ordina
 
JavaScript Basics and Best Practices - CC FE & UX
JavaScript Basics and Best Practices - CC FE & UXJavaScript Basics and Best Practices - CC FE & UX
JavaScript Basics and Best Practices - CC FE & UX
JWORKS powered by Ordina
 
Lagom in Practice
Lagom in PracticeLagom in Practice
Lagom in Practice
JWORKS powered by Ordina
 
To SQL or NoSQL, that is the question
To SQL or NoSQL, that is the questionTo SQL or NoSQL, that is the question
To SQL or NoSQL, that is the question
Krishnakumar S
 

Viewers also liked (20)

Redis And python at pycon_2011
Redis And python at pycon_2011Redis And python at pycon_2011
Redis And python at pycon_2011
 
Responsive web - CC FE & UX
Responsive web -  CC FE & UXResponsive web -  CC FE & UX
Responsive web - CC FE & UX
 
Meteor - JOIN 2015
Meteor - JOIN 2015Meteor - JOIN 2015
Meteor - JOIN 2015
 
Batch Processing - A&BP CC
Batch Processing - A&BP CCBatch Processing - A&BP CC
Batch Processing - A&BP CC
 
Mongodb @ vrt
Mongodb @ vrtMongodb @ vrt
Mongodb @ vrt
 
Clean Code - A&BP CC
Clean Code - A&BP CCClean Code - A&BP CC
Clean Code - A&BP CC
 
Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014
 
mwpc gas gain report
mwpc gas gain reportmwpc gas gain report
mwpc gas gain report
 
Microservices with Netflix OSS & Hypermedia APIs - JavaDay Kiev
Microservices with Netflix OSS & Hypermedia APIs - JavaDay KievMicroservices with Netflix OSS & Hypermedia APIs - JavaDay Kiev
Microservices with Netflix OSS & Hypermedia APIs - JavaDay Kiev
 
Big data document and graph d bs - couch-db and orientdb
Big data  document and graph d bs - couch-db and orientdbBig data  document and graph d bs - couch-db and orientdb
Big data document and graph d bs - couch-db and orientdb
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Spring REST Docs: Documenting RESTful APIs using your tests - Devoxx
Spring REST Docs: Documenting RESTful APIs using your tests - DevoxxSpring REST Docs: Documenting RESTful APIs using your tests - Devoxx
Spring REST Docs: Documenting RESTful APIs using your tests - Devoxx
 
Unit testing - A&BP CC
Unit testing - A&BP CCUnit testing - A&BP CC
Unit testing - A&BP CC
 
Hadoop bootcamp getting started
Hadoop bootcamp getting startedHadoop bootcamp getting started
Hadoop bootcamp getting started
 
An introduction to Cloud Foundry
An introduction to Cloud FoundryAn introduction to Cloud Foundry
An introduction to Cloud Foundry
 
SAP SuccessFactors With BGBS MENA
SAP SuccessFactors With BGBS MENASAP SuccessFactors With BGBS MENA
SAP SuccessFactors With BGBS MENA
 
AngularJS Basics and Best Practices - CC FE &UX
AngularJS Basics and Best Practices - CC FE &UXAngularJS Basics and Best Practices - CC FE &UX
AngularJS Basics and Best Practices - CC FE &UX
 
JavaScript Basics and Best Practices - CC FE & UX
JavaScript Basics and Best Practices - CC FE & UXJavaScript Basics and Best Practices - CC FE & UX
JavaScript Basics and Best Practices - CC FE & UX
 
Lagom in Practice
Lagom in PracticeLagom in Practice
Lagom in Practice
 
To SQL or NoSQL, that is the question
To SQL or NoSQL, that is the questionTo SQL or NoSQL, that is the question
To SQL or NoSQL, that is the question
 

Similar to Mongo db intro.pptx

Mongo db transcript
Mongo db transcriptMongo db transcript
Mongo db transcript
foliba
 
Introduction to NoSQL and MongoDB
Introduction to NoSQL and MongoDBIntroduction to NoSQL and MongoDB
Introduction to NoSQL and MongoDB
Ahmed Farag
 
SQL vs NoSQL, an experiment with MongoDB
SQL vs NoSQL, an experiment with MongoDBSQL vs NoSQL, an experiment with MongoDB
SQL vs NoSQL, an experiment with MongoDB
Marco Segato
 
MONGODB VASUDEV PRAJAPATI DOCUMENTBASE DATABASE
MONGODB VASUDEV PRAJAPATI DOCUMENTBASE DATABASEMONGODB VASUDEV PRAJAPATI DOCUMENTBASE DATABASE
MONGODB VASUDEV PRAJAPATI DOCUMENTBASE DATABASE
vasustudy176
 
Webinar: Enterprise Trends for Database-as-a-Service
Webinar: Enterprise Trends for Database-as-a-ServiceWebinar: Enterprise Trends for Database-as-a-Service
Webinar: Enterprise Trends for Database-as-a-Service
MongoDB
 
MongoDB on Financial Services Sector
MongoDB on Financial Services SectorMongoDB on Financial Services Sector
MongoDB on Financial Services Sector
Norberto Leite
 
When to Use MongoDB
When to Use MongoDBWhen to Use MongoDB
When to Use MongoDB
MongoDB
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
balwinders
 
Webinar: When to Use MongoDB
Webinar: When to Use MongoDBWebinar: When to Use MongoDB
Webinar: When to Use MongoDB
MongoDB
 
Designing your SaaS Database for Scale with Postgres
Designing your SaaS Database for Scale with PostgresDesigning your SaaS Database for Scale with Postgres
Designing your SaaS Database for Scale with Postgres
Ozgun Erdogan
 
Mongodb
MongodbMongodb
Mongodb
Apurva Vyas
 
MongoDB 2.4 and spring data
MongoDB 2.4 and spring dataMongoDB 2.4 and spring data
MongoDB 2.4 and spring data
Jimmy Ray
 
Webinar: An Enterprise Architect’s View of MongoDB
Webinar: An Enterprise Architect’s View of MongoDBWebinar: An Enterprise Architect’s View of MongoDB
Webinar: An Enterprise Architect’s View of MongoDB
MongoDB
 
Mongodb Introduction
Mongodb IntroductionMongodb Introduction
Mongodb Introduction
Jeremy Taylor
 
A Brief Introduction: MongoDB
A Brief Introduction: MongoDBA Brief Introduction: MongoDB
A Brief Introduction: MongoDB
DATAVERSITY
 
how_can_businesses_address_storage_issues_using_mongodb.pptx
how_can_businesses_address_storage_issues_using_mongodb.pptxhow_can_businesses_address_storage_issues_using_mongodb.pptx
how_can_businesses_address_storage_issues_using_mongodb.pptx
sarah david
 
MongoDB : Scaling, Security & Performance
MongoDB : Scaling, Security & PerformanceMongoDB : Scaling, Security & Performance
MongoDB : Scaling, Security & Performance
Sasidhar Gogulapati
 
The Future of Distributed Databases
The Future of Distributed DatabasesThe Future of Distributed Databases
The Future of Distributed Databases
NuoDB
 
Cloud Data Strategy event London
Cloud Data Strategy event LondonCloud Data Strategy event London
Cloud Data Strategy event London
MongoDB
 
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYCHands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Laura Ventura
 

Similar to Mongo db intro.pptx (20)

Mongo db transcript
Mongo db transcriptMongo db transcript
Mongo db transcript
 
Introduction to NoSQL and MongoDB
Introduction to NoSQL and MongoDBIntroduction to NoSQL and MongoDB
Introduction to NoSQL and MongoDB
 
SQL vs NoSQL, an experiment with MongoDB
SQL vs NoSQL, an experiment with MongoDBSQL vs NoSQL, an experiment with MongoDB
SQL vs NoSQL, an experiment with MongoDB
 
MONGODB VASUDEV PRAJAPATI DOCUMENTBASE DATABASE
MONGODB VASUDEV PRAJAPATI DOCUMENTBASE DATABASEMONGODB VASUDEV PRAJAPATI DOCUMENTBASE DATABASE
MONGODB VASUDEV PRAJAPATI DOCUMENTBASE DATABASE
 
Webinar: Enterprise Trends for Database-as-a-Service
Webinar: Enterprise Trends for Database-as-a-ServiceWebinar: Enterprise Trends for Database-as-a-Service
Webinar: Enterprise Trends for Database-as-a-Service
 
MongoDB on Financial Services Sector
MongoDB on Financial Services SectorMongoDB on Financial Services Sector
MongoDB on Financial Services Sector
 
When to Use MongoDB
When to Use MongoDBWhen to Use MongoDB
When to Use MongoDB
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
Webinar: When to Use MongoDB
Webinar: When to Use MongoDBWebinar: When to Use MongoDB
Webinar: When to Use MongoDB
 
Designing your SaaS Database for Scale with Postgres
Designing your SaaS Database for Scale with PostgresDesigning your SaaS Database for Scale with Postgres
Designing your SaaS Database for Scale with Postgres
 
Mongodb
MongodbMongodb
Mongodb
 
MongoDB 2.4 and spring data
MongoDB 2.4 and spring dataMongoDB 2.4 and spring data
MongoDB 2.4 and spring data
 
Webinar: An Enterprise Architect’s View of MongoDB
Webinar: An Enterprise Architect’s View of MongoDBWebinar: An Enterprise Architect’s View of MongoDB
Webinar: An Enterprise Architect’s View of MongoDB
 
Mongodb Introduction
Mongodb IntroductionMongodb Introduction
Mongodb Introduction
 
A Brief Introduction: MongoDB
A Brief Introduction: MongoDBA Brief Introduction: MongoDB
A Brief Introduction: MongoDB
 
how_can_businesses_address_storage_issues_using_mongodb.pptx
how_can_businesses_address_storage_issues_using_mongodb.pptxhow_can_businesses_address_storage_issues_using_mongodb.pptx
how_can_businesses_address_storage_issues_using_mongodb.pptx
 
MongoDB : Scaling, Security & Performance
MongoDB : Scaling, Security & PerformanceMongoDB : Scaling, Security & Performance
MongoDB : Scaling, Security & Performance
 
The Future of Distributed Databases
The Future of Distributed DatabasesThe Future of Distributed Databases
The Future of Distributed Databases
 
Cloud Data Strategy event London
Cloud Data Strategy event LondonCloud Data Strategy event London
Cloud Data Strategy event London
 
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYCHands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
 

More from JWORKS powered by Ordina

Introduction to Webpack - Ordina JWorks - CC JS & Web
Introduction to Webpack - Ordina JWorks - CC JS & WebIntroduction to Webpack - Ordina JWorks - CC JS & Web
Introduction to Webpack - Ordina JWorks - CC JS & Web
JWORKS powered by Ordina
 
Netflix OSS and HATEOAS deployed on production - JavaLand
Netflix OSS and HATEOAS deployed on production - JavaLandNetflix OSS and HATEOAS deployed on production - JavaLand
Netflix OSS and HATEOAS deployed on production - JavaLand
JWORKS powered by Ordina
 
Cc internet of things @ Thomas More
Cc internet of things @ Thomas MoreCc internet of things @ Thomas More
Cc internet of things @ Thomas More
JWORKS powered by Ordina
 
Cc internet of things LoRa and IoT - Innovation Enablers
Cc internet of things   LoRa and IoT - Innovation Enablers Cc internet of things   LoRa and IoT - Innovation Enablers
Cc internet of things LoRa and IoT - Innovation Enablers
JWORKS powered by Ordina
 
Big data key-value and column stores redis - cassandra
Big data  key-value and column stores redis - cassandraBig data  key-value and column stores redis - cassandra
Big data key-value and column stores redis - cassandra
JWORKS powered by Ordina
 
Big data elasticsearch practical
Big data  elasticsearch practicalBig data  elasticsearch practical
Big data elasticsearch practical
JWORKS powered by Ordina
 
Intro to cassandra
Intro to cassandraIntro to cassandra
Intro to cassandra
JWORKS powered by Ordina
 
Android wear - CC Mobile
Android wear - CC MobileAndroid wear - CC Mobile
Android wear - CC Mobile
JWORKS powered by Ordina
 
Integration testing - A&BP CC
Integration testing - A&BP CCIntegration testing - A&BP CC
Integration testing - A&BP CC
JWORKS powered by Ordina
 
Spring 4 - A&BP CC
Spring 4 - A&BP CCSpring 4 - A&BP CC
Spring 4 - A&BP CC
JWORKS powered by Ordina
 
Android secure offline storage - CC Mobile
Android secure offline storage - CC MobileAndroid secure offline storage - CC Mobile
Android secure offline storage - CC Mobile
JWORKS powered by Ordina
 
Java 7 & 8 - A&BP CC
Java 7 & 8 - A&BP CCJava 7 & 8 - A&BP CC
Java 7 & 8 - A&BP CC
JWORKS powered by Ordina
 
IoT: A glance into the future
IoT: A glance into the futureIoT: A glance into the future
IoT: A glance into the future
JWORKS powered by Ordina
 
Workshop Ionic Framework - CC FE & UX
Workshop Ionic Framework - CC FE & UXWorkshop Ionic Framework - CC FE & UX
Workshop Ionic Framework - CC FE & UX
JWORKS powered by Ordina
 
IoT: LoRa and Java on the PI
IoT: LoRa and Java on the PIIoT: LoRa and Java on the PI
IoT: LoRa and Java on the PI
JWORKS powered by Ordina
 
IoT: An introduction
IoT: An introductionIoT: An introduction
IoT: An introduction
JWORKS powered by Ordina
 
Unit Testing in AngularJS - CC FE & UX
Unit Testing in AngularJS -  CC FE & UXUnit Testing in AngularJS -  CC FE & UX
Unit Testing in AngularJS - CC FE & UX
JWORKS powered by Ordina
 

More from JWORKS powered by Ordina (17)

Introduction to Webpack - Ordina JWorks - CC JS & Web
Introduction to Webpack - Ordina JWorks - CC JS & WebIntroduction to Webpack - Ordina JWorks - CC JS & Web
Introduction to Webpack - Ordina JWorks - CC JS & Web
 
Netflix OSS and HATEOAS deployed on production - JavaLand
Netflix OSS and HATEOAS deployed on production - JavaLandNetflix OSS and HATEOAS deployed on production - JavaLand
Netflix OSS and HATEOAS deployed on production - JavaLand
 
Cc internet of things @ Thomas More
Cc internet of things @ Thomas MoreCc internet of things @ Thomas More
Cc internet of things @ Thomas More
 
Cc internet of things LoRa and IoT - Innovation Enablers
Cc internet of things   LoRa and IoT - Innovation Enablers Cc internet of things   LoRa and IoT - Innovation Enablers
Cc internet of things LoRa and IoT - Innovation Enablers
 
Big data key-value and column stores redis - cassandra
Big data  key-value and column stores redis - cassandraBig data  key-value and column stores redis - cassandra
Big data key-value and column stores redis - cassandra
 
Big data elasticsearch practical
Big data  elasticsearch practicalBig data  elasticsearch practical
Big data elasticsearch practical
 
Intro to cassandra
Intro to cassandraIntro to cassandra
Intro to cassandra
 
Android wear - CC Mobile
Android wear - CC MobileAndroid wear - CC Mobile
Android wear - CC Mobile
 
Integration testing - A&BP CC
Integration testing - A&BP CCIntegration testing - A&BP CC
Integration testing - A&BP CC
 
Spring 4 - A&BP CC
Spring 4 - A&BP CCSpring 4 - A&BP CC
Spring 4 - A&BP CC
 
Android secure offline storage - CC Mobile
Android secure offline storage - CC MobileAndroid secure offline storage - CC Mobile
Android secure offline storage - CC Mobile
 
Java 7 & 8 - A&BP CC
Java 7 & 8 - A&BP CCJava 7 & 8 - A&BP CC
Java 7 & 8 - A&BP CC
 
IoT: A glance into the future
IoT: A glance into the futureIoT: A glance into the future
IoT: A glance into the future
 
Workshop Ionic Framework - CC FE & UX
Workshop Ionic Framework - CC FE & UXWorkshop Ionic Framework - CC FE & UX
Workshop Ionic Framework - CC FE & UX
 
IoT: LoRa and Java on the PI
IoT: LoRa and Java on the PIIoT: LoRa and Java on the PI
IoT: LoRa and Java on the PI
 
IoT: An introduction
IoT: An introductionIoT: An introduction
IoT: An introduction
 
Unit Testing in AngularJS - CC FE & UX
Unit Testing in AngularJS -  CC FE & UXUnit Testing in AngularJS -  CC FE & UX
Unit Testing in AngularJS - CC FE & UX
 

Recently uploaded

Stork Product Overview: An AI-Powered Autonomous Delivery Fleet
Stork Product Overview: An AI-Powered Autonomous Delivery FleetStork Product Overview: An AI-Powered Autonomous Delivery Fleet
Stork Product Overview: An AI-Powered Autonomous Delivery Fleet
Vince Scalabrino
 
Refactoring legacy systems using events commands and bubble contexts
Refactoring legacy systems using events commands and bubble contextsRefactoring legacy systems using events commands and bubble contexts
Refactoring legacy systems using events commands and bubble contexts
Michał Kurzeja
 
Task Tracker Is The Best Alternative For ClickUp
Task Tracker Is The Best Alternative For ClickUpTask Tracker Is The Best Alternative For ClickUp
Task Tracker Is The Best Alternative For ClickUp
Task Tracker
 
Enhancing non-Perl bioinformatic applications with Perl
Enhancing non-Perl bioinformatic applications with PerlEnhancing non-Perl bioinformatic applications with Perl
Enhancing non-Perl bioinformatic applications with Perl
Christos Argyropoulos
 
Solar Panel Service Provider annual maintenance contract.pdf
Solar Panel Service Provider annual maintenance contract.pdfSolar Panel Service Provider annual maintenance contract.pdf
Solar Panel Service Provider annual maintenance contract.pdf
SERVE WELL CRM NASHIK
 
Female Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service Available
Female Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service AvailableFemale Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service Available
Female Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service Available
isha sharman06
 
Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...
Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...
Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...
sapnasaifi408
 
Folding Cheat Sheet #5 - fifth in a series
Folding Cheat Sheet #5 - fifth in a seriesFolding Cheat Sheet #5 - fifth in a series
Folding Cheat Sheet #5 - fifth in a series
Philip Schwarz
 
Folding Cheat Sheet #6 - sixth in a series
Folding Cheat Sheet #6 - sixth in a seriesFolding Cheat Sheet #6 - sixth in a series
Folding Cheat Sheet #6 - sixth in a series
Philip Schwarz
 
Revolutionizing Task Scheduling in CFML!
Revolutionizing Task Scheduling in CFML!Revolutionizing Task Scheduling in CFML!
Revolutionizing Task Scheduling in CFML!
Ortus Solutions, Corp
 
一比一原版宾夕法尼亚大学毕业证(UPenn毕业证书)学历如何办理
一比一原版宾夕法尼亚大学毕业证(UPenn毕业证书)学历如何办理一比一原版宾夕法尼亚大学毕业证(UPenn毕业证书)学历如何办理
一比一原版宾夕法尼亚大学毕业证(UPenn毕业证书)学历如何办理
eydbbz
 
European Standard S1000D, an Unnecessary Expense to OEM.pptx
European Standard S1000D, an Unnecessary Expense to OEM.pptxEuropean Standard S1000D, an Unnecessary Expense to OEM.pptx
European Standard S1000D, an Unnecessary Expense to OEM.pptx
Digital Teacher
 
Call Girls Bangalore🔥7023059433🔥Best Profile Escorts in Bangalore Available 24/7
Call Girls Bangalore🔥7023059433🔥Best Profile Escorts in Bangalore Available 24/7Call Girls Bangalore🔥7023059433🔥Best Profile Escorts in Bangalore Available 24/7
Call Girls Bangalore🔥7023059433🔥Best Profile Escorts in Bangalore Available 24/7
manji sharman06
 
OpenChain Webinar - Open Source Due Diligence for M&A - 2024-06-17
OpenChain Webinar - Open Source Due Diligence for M&A - 2024-06-17OpenChain Webinar - Open Source Due Diligence for M&A - 2024-06-17
OpenChain Webinar - Open Source Due Diligence for M&A - 2024-06-17
Shane Coughlan
 
Top Call Girls Lucknow ✔ 9352988975 ✔ Hi I Am Divya Vip Call Girl Services Pr...
Top Call Girls Lucknow ✔ 9352988975 ✔ Hi I Am Divya Vip Call Girl Services Pr...Top Call Girls Lucknow ✔ 9352988975 ✔ Hi I Am Divya Vip Call Girl Services Pr...
Top Call Girls Lucknow ✔ 9352988975 ✔ Hi I Am Divya Vip Call Girl Services Pr...
simmi singh$A17
 
AI Based Testing - A Comprehensive Guide.pdf
AI Based Testing - A Comprehensive Guide.pdfAI Based Testing - A Comprehensive Guide.pdf
AI Based Testing - A Comprehensive Guide.pdf
kalichargn70th171
 
Extreme DDD Modelling Patterns - 2024 Devoxx Poland
Extreme DDD Modelling Patterns - 2024 Devoxx PolandExtreme DDD Modelling Patterns - 2024 Devoxx Poland
Extreme DDD Modelling Patterns - 2024 Devoxx Poland
Alberto Brandolini
 
Streamlining End-to-End Testing Automation
Streamlining End-to-End Testing AutomationStreamlining End-to-End Testing Automation
Streamlining End-to-End Testing Automation
Anand Bagmar
 
🔥 Chennai Call Girls  👉 6350257716 👫 High Profile Call Girls Whatsapp Number ...
🔥 Chennai Call Girls  👉 6350257716 👫 High Profile Call Girls Whatsapp Number ...🔥 Chennai Call Girls  👉 6350257716 👫 High Profile Call Girls Whatsapp Number ...
🔥 Chennai Call Girls  👉 6350257716 👫 High Profile Call Girls Whatsapp Number ...
tinakumariji156
 
LIVE DEMO: CCX for CSPs, a drop-in DBaaS solution
LIVE DEMO: CCX for CSPs, a drop-in DBaaS solutionLIVE DEMO: CCX for CSPs, a drop-in DBaaS solution
LIVE DEMO: CCX for CSPs, a drop-in DBaaS solution
Severalnines
 

Recently uploaded (20)

Stork Product Overview: An AI-Powered Autonomous Delivery Fleet
Stork Product Overview: An AI-Powered Autonomous Delivery FleetStork Product Overview: An AI-Powered Autonomous Delivery Fleet
Stork Product Overview: An AI-Powered Autonomous Delivery Fleet
 
Refactoring legacy systems using events commands and bubble contexts
Refactoring legacy systems using events commands and bubble contextsRefactoring legacy systems using events commands and bubble contexts
Refactoring legacy systems using events commands and bubble contexts
 
Task Tracker Is The Best Alternative For ClickUp
Task Tracker Is The Best Alternative For ClickUpTask Tracker Is The Best Alternative For ClickUp
Task Tracker Is The Best Alternative For ClickUp
 
Enhancing non-Perl bioinformatic applications with Perl
Enhancing non-Perl bioinformatic applications with PerlEnhancing non-Perl bioinformatic applications with Perl
Enhancing non-Perl bioinformatic applications with Perl
 
Solar Panel Service Provider annual maintenance contract.pdf
Solar Panel Service Provider annual maintenance contract.pdfSolar Panel Service Provider annual maintenance contract.pdf
Solar Panel Service Provider annual maintenance contract.pdf
 
Female Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service Available
Female Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service AvailableFemale Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service Available
Female Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service Available
 
Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...
Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...
Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...
 
Folding Cheat Sheet #5 - fifth in a series
Folding Cheat Sheet #5 - fifth in a seriesFolding Cheat Sheet #5 - fifth in a series
Folding Cheat Sheet #5 - fifth in a series
 
Folding Cheat Sheet #6 - sixth in a series
Folding Cheat Sheet #6 - sixth in a seriesFolding Cheat Sheet #6 - sixth in a series
Folding Cheat Sheet #6 - sixth in a series
 
Revolutionizing Task Scheduling in CFML!
Revolutionizing Task Scheduling in CFML!Revolutionizing Task Scheduling in CFML!
Revolutionizing Task Scheduling in CFML!
 
一比一原版宾夕法尼亚大学毕业证(UPenn毕业证书)学历如何办理
一比一原版宾夕法尼亚大学毕业证(UPenn毕业证书)学历如何办理一比一原版宾夕法尼亚大学毕业证(UPenn毕业证书)学历如何办理
一比一原版宾夕法尼亚大学毕业证(UPenn毕业证书)学历如何办理
 
European Standard S1000D, an Unnecessary Expense to OEM.pptx
European Standard S1000D, an Unnecessary Expense to OEM.pptxEuropean Standard S1000D, an Unnecessary Expense to OEM.pptx
European Standard S1000D, an Unnecessary Expense to OEM.pptx
 
Call Girls Bangalore🔥7023059433🔥Best Profile Escorts in Bangalore Available 24/7
Call Girls Bangalore🔥7023059433🔥Best Profile Escorts in Bangalore Available 24/7Call Girls Bangalore🔥7023059433🔥Best Profile Escorts in Bangalore Available 24/7
Call Girls Bangalore🔥7023059433🔥Best Profile Escorts in Bangalore Available 24/7
 
OpenChain Webinar - Open Source Due Diligence for M&A - 2024-06-17
OpenChain Webinar - Open Source Due Diligence for M&A - 2024-06-17OpenChain Webinar - Open Source Due Diligence for M&A - 2024-06-17
OpenChain Webinar - Open Source Due Diligence for M&A - 2024-06-17
 
Top Call Girls Lucknow ✔ 9352988975 ✔ Hi I Am Divya Vip Call Girl Services Pr...
Top Call Girls Lucknow ✔ 9352988975 ✔ Hi I Am Divya Vip Call Girl Services Pr...Top Call Girls Lucknow ✔ 9352988975 ✔ Hi I Am Divya Vip Call Girl Services Pr...
Top Call Girls Lucknow ✔ 9352988975 ✔ Hi I Am Divya Vip Call Girl Services Pr...
 
AI Based Testing - A Comprehensive Guide.pdf
AI Based Testing - A Comprehensive Guide.pdfAI Based Testing - A Comprehensive Guide.pdf
AI Based Testing - A Comprehensive Guide.pdf
 
Extreme DDD Modelling Patterns - 2024 Devoxx Poland
Extreme DDD Modelling Patterns - 2024 Devoxx PolandExtreme DDD Modelling Patterns - 2024 Devoxx Poland
Extreme DDD Modelling Patterns - 2024 Devoxx Poland
 
Streamlining End-to-End Testing Automation
Streamlining End-to-End Testing AutomationStreamlining End-to-End Testing Automation
Streamlining End-to-End Testing Automation
 
🔥 Chennai Call Girls  👉 6350257716 👫 High Profile Call Girls Whatsapp Number ...
🔥 Chennai Call Girls  👉 6350257716 👫 High Profile Call Girls Whatsapp Number ...🔥 Chennai Call Girls  👉 6350257716 👫 High Profile Call Girls Whatsapp Number ...
🔥 Chennai Call Girls  👉 6350257716 👫 High Profile Call Girls Whatsapp Number ...
 
LIVE DEMO: CCX for CSPs, a drop-in DBaaS solution
LIVE DEMO: CCX for CSPs, a drop-in DBaaS solutionLIVE DEMO: CCX for CSPs, a drop-in DBaaS solution
LIVE DEMO: CCX for CSPs, a drop-in DBaaS solution
 

Mongo db intro.pptx

  • 2. 2 Content ▪ MongoDB Intro ▪ MongoDB @VRT by Chris ▪ MongoDB 2.6: What is new ▪ Break ▪ Certification by Tim ▪ Online Courses MongoDB / Hadoop and What next
  • 3. 3 MongoDB Intro ▪ A new world ▪ NoSQL ▪ What is MongoDB ▪ MongoDB Architecture
  • 4. 4 A New World ▪ New Apps The applications serving, generating and interfacing with data have changed. Big Data, SaaS, social and mobile apps are the new norm. ▪ New Data Types New applications, users and inputs demand new types of data, like unstructured, semi- structured and polymorphic data. ▪ New Data Volumes Data volumes were once smaller, constrained and predictable. Today organizations must be prepared to support millions of users, thousands of queries per second and hundreds of terabytes of data. ▪ New Development Methods The methods we use to build applications have changed. With increasingly competitive markets and the need to adapt constantly, iterative development has become the standard. ▪ New Architectures The infrastructure on which we store data has changed. Companies are leveraging cloud computing, commodity hardware and virtualization. MongoDB was designed for how we build and run applications today.
  • 6. 6 NoSQL ▪ Wide variety of different database techonologies ▪ Designed to deal with new issues arising with data - Rise in volume of data stored - Frequency in which this data is accessed - Performance and Processing Needs What is NoSQL
  • 7. 7 NoSQL ▪ Document databases - Pair each key with a complex data structure known as a document. Documents can contain: key-value pairs, key-array pairs and even nested documents. ▪ Graph stores - Store information about networks, such as social connections. ▪ Key-value stores - simplest NoSQL databases. - every single item in the database is stored as an attribute name (or "key"), together with its value. ▪ Wide-column stores - Optimized for queries over large datasets - Store columns of data together, instead of rows. NoSQL datatypes
  • 8. 8 The benefits of NoSQL ▪ More Scaleable ▪ More performance ▪ Their data model addresses several issues a relational model is not designed to address - Large volumes of structured, semi-structured, and unstructured data - Agile sprints, quick iteration, and frequent code pushes - Object-oriented programming that is easy to use and flexible - Efficient, scale-out architecture instead of expensive, monolithic architecture
  • 9. 9 The benefits of NoSQL ▪ Dynamic Schemas - Agile development approach ▪ Auto Sharding - Application does not need to be aware of server composition - Cloud ▪ Replication - Most support automatic replication - High availability and better disaster recovery ▪ Integrated Caching - On relational DB does not improve writes
  • 11. 11 What is MongoDB ▪ Open Source Database ▪ Used by companies of all sizes ▪ Agile database ▪ With functionality of traditional databases: - Full query language - Consistency - Secondary Indexes ▪ Built for: - Scalability - Performance - High Availability ▪ NoSQL
  • 13. 13 MongoDB Architecture ▪ Document Data Model ▪ Rich Query Model ▪ Idiomatic Drivers ▪ Horizontal Scalability ▪ High Availability ▪ In-Memory Performance ▪ Flexibility Feature Overview
  • 14. 14 MongoDB Architecture ▪ Data as Documents - Stored in BSON (Binary Json) - Collections (similar like a table tables) - Tends to have all data for a given record in a single document ▪ Dynamic Schema - Documents can vary in structure - Fields can vary from document to document - Documents are self-describing - New fields, collections can be created without affecting all other documents in the system, without updating a central system catalog and without taking the system offline MongoDB Data Model
  • 15. 15 MongoDB Architecture ▪ Idiomatic Drivers - MongoDB provides native drivers for all popular programming languages and frameworks to make development natural. - Supported drivers include Java, .NET, Ruby, PHP, JavaScript, node.js, Python, Perl, PHP, Scala and others. ▪ Query Types - MongoDB supports many types of queries. A query may return a document or a subset of specific fields within the document. ▪ Key-Value queries: on alue of a specific field ▪ Range queries: on inequalities (greater then, smaller then …) ▪ Geospatial queries: on proximity criteria ▪ Text Search queries: on relevance order based on text arguments ▪ Aggregation Framework queries: like group by statements ▪ MapReduce Queries: complex data processing expressed in JavaScript MongoDB Query Model
  • 16. 16 MongoDB Architecture ▪ Indexing - Many types of indexes on any field in the document - Improve performance of some operations by orders of magnitued - Has associated costs in the form of: ▪ Slower writes ▪ Disk usage ▪ Memory Usage MongoDB Query Model
  • 17. 17 MongoDB Architecture ▪ Auto-Sharding - Distributes data across multiple physical partitions called shards. - Allows MongoDB deployments to address the hardware limitations of a single server, such as bottlenecks in RAM or disk I/O, without adding complexity to the application. ▪ Sharding is transparent to applications: - Applications issue requests to query routers which sends that query to the appropriate shards MongoDB Data Management
  • 18. 18 MongoDB Architecture ▪ Transaction Model - ACID compliant at the document level. Ensures complete isolation as a document is updated; any errors cause the operation to roll back and clients receive a consistent view of the document - This is the same model used by many traditional relational databases to provide durability guarantees. - As a distributed system: additional flexibility in enabling users to achieve their desired durability goals by controlling how write operations are persisted across replicas. MongoDB Consistency & Durability
  • 19. 19 MongoDB Architecture ▪ Replica Sets - MongoDB maintains multiple copies of data called replica sets - A fully self-healing shard that helps prevent database downtime. - Replica failover is fully automated, - The number of replicas in a MongoDB replica set is configurable, - A larger number of replicas provides increased data durability and protection against database downtime (e.g., in case of multiple machine failures, rack failures, data center failures, or network partitions). - Optionally, operations can be configured to write to multiple replicas before returning to the application, thereby providing functionality that is similar to synchronous replication. - Replica sets also provide operational flexibility by providing a way to upgrade hardware and software without requiring the database to go offline. MongoDB Consistency & Durability
  • 20. 20 MongoDB Architecture ▪ In-Memory Performance with On-Disk Capacity - A fully self-healing shard that helps prevent database downtime. - Extensive use of RAM to speed up database operations. ▪ Reading data from memory is measured in nanoseconds, whereas reading data from spinning disk is measured in milliseconds; reading from memory is approximately 100,000 times faster than reading data from disk. - All data is read and manipulated through memory-mapped files. Data that is not accessed is not loaded into RAM. - While it is not required that all data fit in RAM, it should be the goal of the deployment team that indexes and all data that is frequently accessed should fit in RAM. - If the volume of data that is frequently accessed exceeds the capacity of a single machine => Automatic Sharding. - No need for a separate caching layer. MongoDB Consistency & Durability
  • 22. 22 MongoDB Scale ▪ 30 of the world’s 100 largest organizations use MongoDB. ▪ Scale - Over 100 organizations run clusters with more than 100 nodes. Some clusters exceed 1,000 nodes. - Deployments like: Yandex ▪ Velocity - Many clusters deliver hundreds of thousands of operations per second (combined read and write). - Deployments like: Foursquare ▪ Volume - Clusters with hundreds of terabytes, some store multiple petabytes of data. - Over 150 clusters exceed 1 billion documents in size. Many with more than 100 billion documents. - Deployments like: Craigslist
  • 23. 23 MongoDB Use Case ▪ Why move? - Original architecture relied on relational DB - Too much traffic for 1 machine ▪ Why MongoDB - Auto-sharding to scale high-traffic and fast-growing application - Geo-indexing for easy querying of location-based data - Dramatically simplified data model Foursquary
  • 24. 24 MongoDB Use Case ▪ In today’s regulatory environment, there are two constants about compliance: - requirements are changing - the volume of data to manage is immense. ▪ For Craigslist, the popular classifieds and job posting community that serves 570 cities in 50 countries, this means: - Having to archive years of accumulated data. (1.5 million new classified ads posted every day) - Must be able to query and report on these archives at runtime. ▪ Historically: - MySQL Cluster - Simple schema change on their vast archive took months to complete, preventing them from pushing new features. Craigslist 1
  • 25. 25 MongoDB Use Case ▪ Flexibility - Each post and its metadata in a single document - Schema changes with little cost ▪ Scalability and Availability - Can to scale horizontaly across commodity hardware without having to write and maintain complex, custom sharding code - Craigslist’s initial MongoDB deployment was designed to hold over 5 billion documents and 10TB of data. - MongoDB’s support for automated failover of nodes via replica sets was another big win. In the previous system it was a manual effort. ▪ Ease of Use ▪ Proven, Supported Technology - Compared to the other NoSQL options, MongoDB is broadly-used technology with many major deployments. Craigslist 2
  翻译: