SlideShare ist ein Scribd-Unternehmen logo
1 von 26
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 ?

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to NoSQL Databases
Introduction to NoSQL DatabasesIntroduction to NoSQL Databases
Introduction to NoSQL Databases
Derek Stainer
 
MongoDB- Crud Operation
MongoDB- Crud OperationMongoDB- Crud Operation
MongoDB- Crud Operation
Edureka!
 
An Introduction to Big Data, NoSQL and MongoDB
An Introduction to Big Data, NoSQL and MongoDBAn Introduction to Big Data, NoSQL and MongoDB
An Introduction to Big Data, NoSQL and MongoDB
William LaForest
 

Was ist angesagt? (20)

Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
Introduction to mongodb
Introduction to mongodbIntroduction to mongodb
Introduction to mongodb
 
Mongodb - NoSql Database
Mongodb - NoSql DatabaseMongodb - NoSql Database
Mongodb - NoSql Database
 
NoSQL databases - An introduction
NoSQL databases - An introductionNoSQL databases - An introduction
NoSQL databases - An introduction
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databases
 
Big Query Basics
Big Query BasicsBig Query Basics
Big Query Basics
 
Introduction to MongoDB.pptx
Introduction to MongoDB.pptxIntroduction to MongoDB.pptx
Introduction to MongoDB.pptx
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
An introduction to MongoDB
An introduction to MongoDBAn introduction to MongoDB
An introduction to MongoDB
 
Introduction to NoSQL Databases
Introduction to NoSQL DatabasesIntroduction to NoSQL Databases
Introduction to NoSQL Databases
 
MongoDB- Crud Operation
MongoDB- Crud OperationMongoDB- Crud Operation
MongoDB- Crud Operation
 
MongoDB Atlas
MongoDB AtlasMongoDB Atlas
MongoDB Atlas
 
The Basics of MongoDB
The Basics of MongoDBThe Basics of MongoDB
The Basics of MongoDB
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
A Thorough Comparison of Delta Lake, Iceberg and Hudi
A Thorough Comparison of Delta Lake, Iceberg and HudiA Thorough Comparison of Delta Lake, Iceberg and Hudi
A Thorough Comparison of Delta Lake, Iceberg and Hudi
 
MongoDB vs. Postgres Benchmarks
MongoDB vs. Postgres Benchmarks MongoDB vs. Postgres Benchmarks
MongoDB vs. Postgres Benchmarks
 
Non relational databases-no sql
Non relational databases-no sqlNon relational databases-no sql
Non relational databases-no sql
 
An Introduction to Big Data, NoSQL and MongoDB
An Introduction to Big Data, NoSQL and MongoDBAn Introduction to Big Data, NoSQL and MongoDB
An Introduction to Big Data, NoSQL and MongoDB
 
9. Document Oriented Databases
9. Document Oriented Databases9. Document Oriented Databases
9. Document Oriented Databases
 

Andere mochten auch

Andere mochten auch (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
 

Ähnlich wie Mongo db intro.pptx

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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
anilsa9823
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
anilsa9823
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
+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
 

Kürzlich hochgeladen (20)

Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
+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...
 

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