SlideShare a Scribd company logo
WHY
Shankar Morwal
CTO and Founder
Habilelabs.io
CONTENTS
1. Growth of Mongodb
2. Flexible data Model
3. MongoDB features
4. Rich set drivers and connectivity
5. Availability & Uptime
6. Security
Facebook
LinkedInGoogle
Twitter
Fastest-Growing Database
RANK DBMS MODEL SCORE GROWTH (20 MO)
1. Oracle Relational DBMS 1,442 -5%
2. MySQL Relational DBMS 1,294 2%
3. Microsoft SQL Server Relational DBMS 1,131 -10%
4. MongoDB Document Store 277 172%
5. PostgreSQL Relational DBMS 273 40%
6. DB2 Relational DBMS 201 11%
7. Microsoft Access Relational DBMS 146 -26%
8. Cassandra Wide Column 107 87%
9. SQLite Relational DBMS 105 19%
Source: DB-engines database popularity rankings; May 2015
Only non-relational in the top 5; 2.5x ahead of nearest NoSQL Competitor
4th Most Popular Database
FLEXIBLE DATA MODEL
DEVELOPER COSTS ON THE RISE
Storage Cost per GB Developer Salary
$0
$20,000
$40,000
$60,000
$80,000
$100,000
1985 2013
$100,000
$0.05
$0
$20,000
$40,000
$60,000
$80,000
$100,000
$120,000
1985 2013
OPTIMIZING FOR ENGINEERING PRODUCTIVITY
1985 2016
Infrastructure Cost
Engineer Cost
{
first_name: ‘Paul’,
surname: ‘Miller’,
city: ‘London’,
location: [45.123,47.232],
cars: [
{ model: ‘Bentley’,
year: 1973,
value: 100000, … },
{ model: ‘Rolls Royce’,
year: 1965,
value: 330000, … }
]
}
MongoDB
DOCUMENT MODEL WITH FLEXIBLE SCHEMA
RDBMS
DOCUMENTS ARE RICH DATA STRUCTURES
{
first_name: ‘Paul’,
surname: ‘Miller’,
cell: 447557505611,
city: ‘London’,
location: [45.123,47.232],
Profession: [‘banking’, ‘finance’, ‘trader’],
cars: [
{ model: ‘Bentley’,
year: 1973,
value: 100000, … },
{ model: ‘Rolls Royce’,
year: 1965,
value: 330000, … }
]
}
Fields can contain an array
of sub-documents
Fields
Typed field values
Fields can contain arrays
Number
DEVELOPMENT – THE PAST
DEVELOPMENT – WITH MONGODB
MONGODB IS FULL FEATURED
Why MongoDB over other Databases - Habilelabs
Rich Queries
• Find Paul’s cars
• Find everybody in London with a car between
1970 and 1980
Geospatial
• Find all of the car owners within 5km of
Trafalgar Sq.
Text Search
• Find all the cars described as having leather
seats
Aggregation
• Calculate the average value of Paul’s car
collection
Map Reduce
• What is the ownership pattern of colors by
geography over time (is purple trending in
China?)
DYNAMIC LOOKUP
Combine data from multiple collections with
left outer joins for richer analytics & more
flexibility in data modeling
MODEL OF THE AGGREGATION FRAMEWORK
RICHER IN-DATABASE ANALYTICS & SEARCH
New Aggregation operators extend options
for performing analytics with lower developer
complexity
Array Operators Math Operators Text
• $slice
• $arrayElemAt
• $concatArrays
• $filter
• $min
• $max
• $avg
• $sum
• and more …
• $stdDevSamp
• $stdDevPop
• $sqrt
• $abs
• $trunc
• $ceil
• $floor
• $log
• $pow
• $exp
• and more …
• Case sensitive
text search
• Support for
languages such
as Arabic, Farsi,
Chinese and
more …
RICH SET DRIVERS AND CONNECTIVITY
DRIVERS & FRAMEWORKS
MEAN Stack
Java Python PerlRuby
ANALYTICS AND BI INTEGRATION
MONGODB CONNECTOR FOR BI
Visualize and explore multi-structured data
using SQL-based BI platforms.
Your BI Platform
BI Connector
Provides Schema
Translates Queries
Translates Response
HIGH AVAILABILITY & UPTIME
REPLICA SETS
• Replica set – 2 to 50 copies
• Makes up a self-healing ‘shard’
• Data center aware
• Addresses:
– High availability
– Data durability, consistency
– Maintenance (e.g., HW swaps)
– Disaster RecoveryA Single
Shard
REPLICA SET - INITIALIZE
Node 1
(Primary)
Node 2
(Secondary)
Node 3
(Secondary)
Replication Replication
Heartbeat
REPLICA SET - FAILURE
Node 2
(Secondary)
Node 3
(Secondary)
Heartbeat
Primary Election
Node 1
(Primary)
REPLICA SET - FAILOVER
Node 1
(Primary)
Node 2
(Primary)
Node 3
(Secondary)
Heartbeat
Replication
REPLICA SET - RECOVERY
Node 2
(Primary)
Node 3
(Secondary)
Heartbeat
Replication
Node 1
(Recovery)
Replication
REPLICA SET - RECOVERED
Node 2
(Primary)
Node 3
(Secondary)
Heartbeat
Replication
Node 1
(Secondary)
Replication
ELASTIC SCALABILITY
ELASTIC SCALABILITY WITH AUTOMATIC SHARDING
• Increase or decrease capacity as you go
• Automatic load balancing
• Three types of sharding
– Hash-based
– Range-based
– Tag-aware
QUERY ROUTING
• Multiple query optimization models
• Each of the sharding options are
appropriate for different apps / use
cases
DESIGNED FOR PERFORMANCE
Better Data Locality In-Memory Caching In-Place Updates
vs.
Relational MongoDB
PERFORMANCE AT SCALE
Top 5 Marketing Firm Government Agency Top 5 Investment Bank
Data Key / Value 10+ fields, arrays, nested documents 20+ fields, arrays, nested documents
Queries
• Key-based
• 1-100 docs/query
• 80/20 read/write
• Compound queries
• Range queries
• MapReduce
• 20/80 read/write
• Compound queries
• Range queries
• 50/50 read/write
Servers ~250 ~50 4
Operations /
Second
1,200,000 500,000 30,000
PERFORMANCE AT SCALE
Cluster Scale Performance Scale Data Scale
Entertainment
Co.
1400 servers 250M Ticks / Sec Petabytes
Asian Internet
Co.
1000+ servers 300K+ Ops / Sec 10s of billions of objects
250+ servers Fed Agency 500K+ Ops / Sec 13B documents
SECURITY
ENTERPRISE-GRADE SECURITY
*Included with MongoDB Enterprise Advanced
BUSINESS NEEDS SECURITY FEATURES
Authentication SCRAM, LDAP*, Kerberos*, x.509 Certificates
Authorization Built-in Roles, User-Defined Roles, Field-Level Redaction
Auditing* Admin, DML, DDL, Role-based
Encryption Network: SSL (with FIPS 140-2), Disk: Encrypted Storage Engine* or Partner Solutions
Questions ?
For any questions drop me line at Shankar@habilelabs.io
CONTACT US
• Development Center :
Habilelabs Pvt. Ltd.
4th Floor, I.G.M. Senior Secondary Public School Campus,
Sec-93 Agarwal Farm, Mansarovar, Jaipur(Raj.) – 302020
• Email : info@Habilelabs.io
• Web : https://habilelabs.io
• Telephone: +91-9828247415 / +91-9887992695

More Related Content

What's hot (20)

PDF
Introduction to mongo db
Rohit Bishnoi
 
PPTX
Webinar: What's new in the .NET Driver
MongoDB
 
PPTX
Common MongoDB Use Cases
MongoDB
 
PDF
CosmosDb for beginners
Phil Pursglove
 
PDF
Common MongoDB Use Cases
DATAVERSITY
 
KEY
MongoDB vs Mysql. A devops point of view
Pierre Baillet
 
PPTX
An Introduction to Big Data, NoSQL and MongoDB
William LaForest
 
PPTX
MongoDB
nikhil2807
 
ODP
Introduction to MongoDB
Dineesha Suraweera
 
KEY
Discover MongoDB - Israel
Michael Fiedler
 
PPTX
When to Use MongoDB
MongoDB
 
PPTX
MongoDB: An Introduction - june-2011
Chris Westin
 
KEY
Hybrid MongoDB and RDBMS Applications
Steven Francia
 
PPTX
Azure CosmosDB
Fernando Mejía
 
PDF
2012 mongo db_bangalore_roadmap_new
MongoDB
 
PDF
MongoDB World 2016: Poster Sessions eBook
MongoDB
 
PPTX
Introduction to MongoDB
NodeXperts
 
PDF
Introduction to MongoDB
Mike Dirolf
 
PPTX
Mongo db
Akshay Mathur
 
PPTX
Azure document db/Cosmos DB
Mohit Chhabra
 
Introduction to mongo db
Rohit Bishnoi
 
Webinar: What's new in the .NET Driver
MongoDB
 
Common MongoDB Use Cases
MongoDB
 
CosmosDb for beginners
Phil Pursglove
 
Common MongoDB Use Cases
DATAVERSITY
 
MongoDB vs Mysql. A devops point of view
Pierre Baillet
 
An Introduction to Big Data, NoSQL and MongoDB
William LaForest
 
MongoDB
nikhil2807
 
Introduction to MongoDB
Dineesha Suraweera
 
Discover MongoDB - Israel
Michael Fiedler
 
When to Use MongoDB
MongoDB
 
MongoDB: An Introduction - june-2011
Chris Westin
 
Hybrid MongoDB and RDBMS Applications
Steven Francia
 
Azure CosmosDB
Fernando Mejía
 
2012 mongo db_bangalore_roadmap_new
MongoDB
 
MongoDB World 2016: Poster Sessions eBook
MongoDB
 
Introduction to MongoDB
NodeXperts
 
Introduction to MongoDB
Mike Dirolf
 
Mongo db
Akshay Mathur
 
Azure document db/Cosmos DB
Mohit Chhabra
 

Similar to Why MongoDB over other Databases - Habilelabs (20)

PPTX
Azure CosmosDb - Where we are
Marco Parenzan
 
PPTX
Transform your DBMS to drive engagement innovation with Big Data
Ashnikbiz
 
PPTX
Ops Jumpstart: MongoDB Administration 101
MongoDB
 
PDF
Time Series Databases for IoT (On-premises and Azure)
Ivo Andreev
 
PPTX
Webinar: Enterprise Data Management in the Era of MongoDB and Data Lakes
MongoDB
 
PPTX
Webinar: When to Use MongoDB
MongoDB
 
PPTX
NoSQL
dbulic
 
PPTX
MongoDB Evenings Toronto - Monolithic to Microservices with MongoDB
MongoDB
 
PDF
Enabling Telco to Build and Run Modern Applications
Tugdual Grall
 
PPTX
SharePoint & jQuery Guide - SPSTC 5/18/2013
Mark Rackley
 
PDF
Big Data Open Source Tools and Trends: Enable Real-Time Business Intelligence...
Perficient, Inc.
 
PPTX
Using Compass to Diagnose Performance Problems
MongoDB
 
PPTX
Using Compass to Diagnose Performance Problems in Your Cluster
MongoDB
 
PDF
Neo4j GraphDay Seattle- Sept19- in the enterprise
Neo4j
 
PPTX
When to Use MongoDB...and When You Should Not...
MongoDB
 
PPTX
Improve Performance in Fast Search for SharePoint - Comperio
Comperio - Search Matters.
 
PPTX
Azure DocumentDB Overview
Andrew Liu
 
PDF
Solr Architecture
Ramez Al-Fayez
 
PDF
Alex mang patterns for scalability in microsoft azure application
Codecamp Romania
 
PPTX
capstone Project Santosh for temp project
Mweome
 
Azure CosmosDb - Where we are
Marco Parenzan
 
Transform your DBMS to drive engagement innovation with Big Data
Ashnikbiz
 
Ops Jumpstart: MongoDB Administration 101
MongoDB
 
Time Series Databases for IoT (On-premises and Azure)
Ivo Andreev
 
Webinar: Enterprise Data Management in the Era of MongoDB and Data Lakes
MongoDB
 
Webinar: When to Use MongoDB
MongoDB
 
NoSQL
dbulic
 
MongoDB Evenings Toronto - Monolithic to Microservices with MongoDB
MongoDB
 
Enabling Telco to Build and Run Modern Applications
Tugdual Grall
 
SharePoint & jQuery Guide - SPSTC 5/18/2013
Mark Rackley
 
Big Data Open Source Tools and Trends: Enable Real-Time Business Intelligence...
Perficient, Inc.
 
Using Compass to Diagnose Performance Problems
MongoDB
 
Using Compass to Diagnose Performance Problems in Your Cluster
MongoDB
 
Neo4j GraphDay Seattle- Sept19- in the enterprise
Neo4j
 
When to Use MongoDB...and When You Should Not...
MongoDB
 
Improve Performance in Fast Search for SharePoint - Comperio
Comperio - Search Matters.
 
Azure DocumentDB Overview
Andrew Liu
 
Solr Architecture
Ramez Al-Fayez
 
Alex mang patterns for scalability in microsoft azure application
Codecamp Romania
 
capstone Project Santosh for temp project
Mweome
 
Ad

More from HabileLabs (8)

PPTX
Basics of MongoDB
HabileLabs
 
PPTX
Top 10 frameworks of node js
HabileLabs
 
PPT
Salesforce Tutorial for Beginners: Basic Salesforce Introduction
HabileLabs
 
PPTX
Introduction to Protractor - Habilelabs
HabileLabs
 
PPTX
MongoDB Security Introduction - Presentation
HabileLabs
 
PPTX
MongoDB with NodeJS - Presentation
HabileLabs
 
PPTX
JAVASCRIPT PERFORMANCE PATTERN - A Presentation
HabileLabs
 
PPTX
Rest API Guidelines by HabileLabs
HabileLabs
 
Basics of MongoDB
HabileLabs
 
Top 10 frameworks of node js
HabileLabs
 
Salesforce Tutorial for Beginners: Basic Salesforce Introduction
HabileLabs
 
Introduction to Protractor - Habilelabs
HabileLabs
 
MongoDB Security Introduction - Presentation
HabileLabs
 
MongoDB with NodeJS - Presentation
HabileLabs
 
JAVASCRIPT PERFORMANCE PATTERN - A Presentation
HabileLabs
 
Rest API Guidelines by HabileLabs
HabileLabs
 
Ad

Recently uploaded (20)

PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 

Why MongoDB over other Databases - Habilelabs

  • 1. WHY Shankar Morwal CTO and Founder Habilelabs.io
  • 2. CONTENTS 1. Growth of Mongodb 2. Flexible data Model 3. MongoDB features 4. Rich set drivers and connectivity 5. Availability & Uptime 6. Security
  • 4. RANK DBMS MODEL SCORE GROWTH (20 MO) 1. Oracle Relational DBMS 1,442 -5% 2. MySQL Relational DBMS 1,294 2% 3. Microsoft SQL Server Relational DBMS 1,131 -10% 4. MongoDB Document Store 277 172% 5. PostgreSQL Relational DBMS 273 40% 6. DB2 Relational DBMS 201 11% 7. Microsoft Access Relational DBMS 146 -26% 8. Cassandra Wide Column 107 87% 9. SQLite Relational DBMS 105 19% Source: DB-engines database popularity rankings; May 2015 Only non-relational in the top 5; 2.5x ahead of nearest NoSQL Competitor 4th Most Popular Database
  • 6. DEVELOPER COSTS ON THE RISE Storage Cost per GB Developer Salary $0 $20,000 $40,000 $60,000 $80,000 $100,000 1985 2013 $100,000 $0.05 $0 $20,000 $40,000 $60,000 $80,000 $100,000 $120,000 1985 2013
  • 7. OPTIMIZING FOR ENGINEERING PRODUCTIVITY 1985 2016 Infrastructure Cost Engineer Cost
  • 8. { first_name: ‘Paul’, surname: ‘Miller’, city: ‘London’, location: [45.123,47.232], cars: [ { model: ‘Bentley’, year: 1973, value: 100000, … }, { model: ‘Rolls Royce’, year: 1965, value: 330000, … } ] } MongoDB DOCUMENT MODEL WITH FLEXIBLE SCHEMA RDBMS
  • 9. DOCUMENTS ARE RICH DATA STRUCTURES { first_name: ‘Paul’, surname: ‘Miller’, cell: 447557505611, city: ‘London’, location: [45.123,47.232], Profession: [‘banking’, ‘finance’, ‘trader’], cars: [ { model: ‘Bentley’, year: 1973, value: 100000, … }, { model: ‘Rolls Royce’, year: 1965, value: 330000, … } ] } Fields can contain an array of sub-documents Fields Typed field values Fields can contain arrays Number
  • 12. MONGODB IS FULL FEATURED
  • 14. Rich Queries • Find Paul’s cars • Find everybody in London with a car between 1970 and 1980 Geospatial • Find all of the car owners within 5km of Trafalgar Sq. Text Search • Find all the cars described as having leather seats Aggregation • Calculate the average value of Paul’s car collection Map Reduce • What is the ownership pattern of colors by geography over time (is purple trending in China?)
  • 15. DYNAMIC LOOKUP Combine data from multiple collections with left outer joins for richer analytics & more flexibility in data modeling
  • 16. MODEL OF THE AGGREGATION FRAMEWORK
  • 17. RICHER IN-DATABASE ANALYTICS & SEARCH New Aggregation operators extend options for performing analytics with lower developer complexity Array Operators Math Operators Text • $slice • $arrayElemAt • $concatArrays • $filter • $min • $max • $avg • $sum • and more … • $stdDevSamp • $stdDevPop • $sqrt • $abs • $trunc • $ceil • $floor • $log • $pow • $exp • and more … • Case sensitive text search • Support for languages such as Arabic, Farsi, Chinese and more …
  • 18. RICH SET DRIVERS AND CONNECTIVITY
  • 19. DRIVERS & FRAMEWORKS MEAN Stack Java Python PerlRuby
  • 20. ANALYTICS AND BI INTEGRATION
  • 21. MONGODB CONNECTOR FOR BI Visualize and explore multi-structured data using SQL-based BI platforms. Your BI Platform BI Connector Provides Schema Translates Queries Translates Response
  • 23. REPLICA SETS • Replica set – 2 to 50 copies • Makes up a self-healing ‘shard’ • Data center aware • Addresses: – High availability – Data durability, consistency – Maintenance (e.g., HW swaps) – Disaster RecoveryA Single Shard
  • 24. REPLICA SET - INITIALIZE Node 1 (Primary) Node 2 (Secondary) Node 3 (Secondary) Replication Replication Heartbeat
  • 25. REPLICA SET - FAILURE Node 2 (Secondary) Node 3 (Secondary) Heartbeat Primary Election Node 1 (Primary)
  • 26. REPLICA SET - FAILOVER Node 1 (Primary) Node 2 (Primary) Node 3 (Secondary) Heartbeat Replication
  • 27. REPLICA SET - RECOVERY Node 2 (Primary) Node 3 (Secondary) Heartbeat Replication Node 1 (Recovery) Replication
  • 28. REPLICA SET - RECOVERED Node 2 (Primary) Node 3 (Secondary) Heartbeat Replication Node 1 (Secondary) Replication
  • 30. ELASTIC SCALABILITY WITH AUTOMATIC SHARDING • Increase or decrease capacity as you go • Automatic load balancing • Three types of sharding – Hash-based – Range-based – Tag-aware
  • 31. QUERY ROUTING • Multiple query optimization models • Each of the sharding options are appropriate for different apps / use cases
  • 32. DESIGNED FOR PERFORMANCE Better Data Locality In-Memory Caching In-Place Updates vs. Relational MongoDB
  • 33. PERFORMANCE AT SCALE Top 5 Marketing Firm Government Agency Top 5 Investment Bank Data Key / Value 10+ fields, arrays, nested documents 20+ fields, arrays, nested documents Queries • Key-based • 1-100 docs/query • 80/20 read/write • Compound queries • Range queries • MapReduce • 20/80 read/write • Compound queries • Range queries • 50/50 read/write Servers ~250 ~50 4 Operations / Second 1,200,000 500,000 30,000
  • 34. PERFORMANCE AT SCALE Cluster Scale Performance Scale Data Scale Entertainment Co. 1400 servers 250M Ticks / Sec Petabytes Asian Internet Co. 1000+ servers 300K+ Ops / Sec 10s of billions of objects 250+ servers Fed Agency 500K+ Ops / Sec 13B documents
  • 36. ENTERPRISE-GRADE SECURITY *Included with MongoDB Enterprise Advanced BUSINESS NEEDS SECURITY FEATURES Authentication SCRAM, LDAP*, Kerberos*, x.509 Certificates Authorization Built-in Roles, User-Defined Roles, Field-Level Redaction Auditing* Admin, DML, DDL, Role-based Encryption Network: SSL (with FIPS 140-2), Disk: Encrypted Storage Engine* or Partner Solutions
  • 37. Questions ? For any questions drop me line at [email protected]
  • 38. CONTACT US • Development Center : Habilelabs Pvt. Ltd. 4th Floor, I.G.M. Senior Secondary Public School Campus, Sec-93 Agarwal Farm, Mansarovar, Jaipur(Raj.) – 302020 • Email : [email protected] • Web : https://habilelabs.io • Telephone: +91-9828247415 / +91-9887992695

Editor's Notes

  • #9: Here we have greatly reduced the relational data model for this application to two tables. In reality no database has two tables. It is much more common to have hundreds or thousands of tables. And as a developer where do you begin when you have a complex data model?? If you’re building an app you’re really thinking about just a hand full of common things, like products, and these can be represented in a document much more easily that a complex relational model where the data is broken up in a way that doesn’t really reflect the way you think about the data or write an application. Document Model Benefits Agility and flexibility Data model supports business change Rapidly iterate to meet new requirements Intuitive, natural data representation Eliminates ORM layer Developers are more productive Reduces the need for joins, disk seeks Programming is more simple Performance delivered at scale
  • #15: Rich queries, text search, geospatial, aggregation, mapreduce are types of things you can build based on the richness of the query model.
  • #16: Blend data from multiple sources for analysis Higher performance analytics with less application-side code and less effort from your developers Executed via the new $lookup operator, a stage in the MongoDB Aggregation Framework pipeline
  • #17: Start with the original collection; each record (document) contains a number of shapes (keys), each with a particular color (value) $match filters out documents that don’t contain a red diamond $project adds a new “square” attribute with a value computed from the value (color) of the snowflake and triangle attributes $lookup performs a left outer join with another collection, with the star being the comparison key Finally, the $group stage groups the data by the color of the square and produces statistics for each group
  • #20: Support for the most popular languages and frameworks
  • #22: MongoDB BI Connector… Provides the BI tool with the schema of the MongoDB collection to be visualized Translates SQL statements issued by the BI tool into equivalent MongoDB queries that are sent to MongoDB for processing Converts the results into the tabular format expected by the BI tool, which can then visualize the data based on user requirements
  • #24: High Availability – Ensure application availability during many types of failures Meet stringent SLAs with fast-failover algorithm Under 2 seconds to detect and recover from replica set primary failure Disaster Recovery – Address the RTO and RPO goals for business continuity Maintenance – Perform upgrades and other maintenance operations with no application downtime Secondaries can be used for a variety of applications – failover, hot backup, rolling upgrades, data locality and privacy and workload isolation
  • #31: MongoDB provides horizontal scale-out for databases using a technique called sharding, which is trans- parent to applications. Sharding distributes data across multiple physical partitions called shards. Sharding 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. MongoDB automatically balances the data in the cluster as the data grows or the size of the cluster increases or decreases. MongoDB supports three types of sharding: • Range-based Sharding. Documents are partitioned across shards according to the shard key value. Documents with shard key values “close” to one another are likely to be co-located on the same shard. This approach is well suited for applications that need to optimize range- based queries. • Hash-based Sharding. Documents are uniformly distributed according to an MD5 hash of the shard key value. Documents with shard key values “close” to one another are unlikely to be co-located on the same shard. This approach guarantees a uniform distribution of writes across shards, but is less optimal for range-based queries. • Tag-aware Sharding. Documents are partitioned according to a user-specified configuration that associates shard key ranges with shards. Users can optimize the physical location of documents for application requirements such as locating data in specific data centers.
  • #32: Sharding is transparent to applications; whether there is one or one hundred shards, the application code for querying MongoDB is the same. Applications issue queries to a query router that dispatches the query to the appropriate shards. For key-value queries that are based on the shard key, the query router will dispatch the query to the shard that manages the document with the requested key. When using range-based sharding, queries that specify ranges on the shard key are only dispatched to shards that contain documents with values within the range. For queries that don’t use the shard key, the query router will dispatch the query to all shards and aggregate and sort the results as appropriate. Multiple query routers can be used with a MongoDB system, and the appropriate number is determined based on performance and availability requirements of the application.
  • #34: The figures above are examples. Your application will govern your performance.
  • #35: The figures above are examples. Your application will govern your performance.