SlideShare a Scribd company logo
An Agile NoSQL Database



Gaurav Awasthi
Technology Evangelist
gawasthi@equalexperts.com
Big Data - The New World Order
•   A massive volume of both structured and unstructured data that it's
    difficult to process using traditional database and software techniques

•   As of 2012, every day 2.5 quintillion bytes of data were created

•   Data Source:
     – Climate sensors
     – Social media
     – Digital pictures and videos
     – Purchase transaction records
     – Cell phone GPS signals

•   Characteristics : Volume, Velocity and Variety

•   Key Usage: leverage data-driven strategies to innovate, compete, and
    capture value from deep and up-to-real-time information
NoSQL
Defining Characteristics

– Scaling out on commodity hardware

– Aggregate structure

– Schema-less attitude

– Impedance Mismatch : Relational model in-memory data structures

– Big Data : Massive data being stored and transacted

– Reduced Data Management and Tuning Requirements

– Eventually consistent / BASE (not ACID)
Mongo DB
• Open-source, Document-oriented, popular for its agile and scalable
  approach
• Notable Features :
   – JSON/BSON data model with dynamic schema

   – Auto-sharding for horizontal scalability

   – Built-in replication with automated fail-overs

   – Full, flexible index support including secondary indexes

   – Rich document-based queries

   – Aggregation framework and Map / Reduce

   – GridFS for large file storage
Agile & MongoDB
Characteristics supporting Agility
  – Allows dynamic schema (schemaless)

  – JSON format, which maps well to object-style data.

  – Simplified db tuning

  – Cost Effective and Simple replica sets

  – Easy scale out due to simplified sharding mechanism

  – Rich content using GridFS
A Demo for Schema-less way
A Demo Query Plan and DB
        Tuning
Replication

• Replica set – a mongod cluster

• Ensures High Availability, Redundancy, Automated Fail-
  over
• Writes to the Primary, Reads from all

• Asynchronous replication

• In conventional terms, more like Master/Slave replication

• Members can be configured to be: Secondary only /
  Non- Voting / Hidden / Arbiters / Delayed
Elastic Architecture
A Demo for Replica Set
• Run the 3 mongod processes

• Demo that they are running on different ports using ps –ef

• Initiate the repl set and add members

• Demo which ones are primary and secondary using rs.status()

• Now insert docs into a collection in primary

• Demo that its replicated to secondary

• Thereby proving how straight fwd is replication

• Briefly touch upon the steps for sharding too
Case Study – E-Commerce Shop
 Architecture Diagram




Product supplier
                   catalog      App                External Feeds
                             (container)   Mongo



                        Payment Gateway
Domain model
JSON structure
{"_id" :                             "compatibleHandsets" : [{
   ObjectId("5082626144ae3a6879             "manufacturer" : {
   19c094"),                                    "name" : "Apple",
"name" : "iPhone 5 Pop Blue Case",              "canonicalName" : "apple"
                                               },
"canonicalName" : "iphone-5-pop-
   blue-case",                              "model" : "iPhone 5 16GB",
                                            "name" :
"retailPrice" : 19.99,                   "Apple_iPhone_5_16GB",
"productCode" : "G4IC542G",                 "canonicalName" :
"category" : {                           "apple_iphone_5_16gb"
                                     }],
         "categoryCode" : "CAS",
        "name" : "Cases",
                                     review_ids : ["review_id1",
        "canonicalName" : "cases"       "review_id2"]
},                                   }
Design decisions with Mongo

• Agile incremental releases

• Unstructured data from multiple suppliers

• GridFS : Stores large binary objects

• Spring Data Services

• Embedding and linking documents

• Easy replication set up for AWS
Conclusion and Thanks
MongoDB: the right persistence tool for Agile Development for multitude of
business problems in the new world order




 References:
 •
     Mongodb.org

More Related Content

What's hot (20)

PDF
Big Challenges in Data Modeling: NoSQL and Data Modeling
DATAVERSITY
 
PDF
Performance comparison: Multi-Model vs. MongoDB and Neo4j
ArangoDB Database
 
PPTX
Bigdata antipatterns
Anurag S
 
PPT
Webinar: High Performance MongoDB Applications with IBM POWER8
MongoDB
 
PDF
Nosql data models
Viet-Trung TRAN
 
PPT
MongoDB Pros and Cons
johnrjenson
 
PPTX
Practical Use of a NoSQL Database
IBM Cloud Data Services
 
PPTX
NoSQL for SQL Users
IBM Cloud Data Services
 
PPTX
Key-Value NoSQL Database
Heman Hosainpana
 
PDF
Дмитрий Лавриненко "Blockchain for Identity Management, based on Fast Big Data"
Fwdays
 
PDF
Practical Use of a NoSQL
IBM Cloud Data Services
 
PPTX
Prepare for Peak Holiday Season with MongoDB
MongoDB
 
PPTX
Survey of the Microsoft Azure Data Landscape
Ike Ellis
 
PPTX
NoSQL and MongoDB Introdction
Brian Enochson
 
PDF
MongoDB Certification Study Group - May 2016
Norberto Leite
 
PDF
Common MongoDB Use Cases
DATAVERSITY
 
PPTX
Building a Scalable and Modern Infrastructure at CARFAX
MongoDB
 
PPTX
Introduction to Azure DocumentDB
Ike Ellis
 
PPTX
NoSQL Tel Aviv Meetup#1: NoSQL Data Modeling
NoSQL TLV
 
PPTX
An Enterprise Architect's View of MongoDB
MongoDB
 
Big Challenges in Data Modeling: NoSQL and Data Modeling
DATAVERSITY
 
Performance comparison: Multi-Model vs. MongoDB and Neo4j
ArangoDB Database
 
Bigdata antipatterns
Anurag S
 
Webinar: High Performance MongoDB Applications with IBM POWER8
MongoDB
 
Nosql data models
Viet-Trung TRAN
 
MongoDB Pros and Cons
johnrjenson
 
Practical Use of a NoSQL Database
IBM Cloud Data Services
 
NoSQL for SQL Users
IBM Cloud Data Services
 
Key-Value NoSQL Database
Heman Hosainpana
 
Дмитрий Лавриненко "Blockchain for Identity Management, based on Fast Big Data"
Fwdays
 
Practical Use of a NoSQL
IBM Cloud Data Services
 
Prepare for Peak Holiday Season with MongoDB
MongoDB
 
Survey of the Microsoft Azure Data Landscape
Ike Ellis
 
NoSQL and MongoDB Introdction
Brian Enochson
 
MongoDB Certification Study Group - May 2016
Norberto Leite
 
Common MongoDB Use Cases
DATAVERSITY
 
Building a Scalable and Modern Infrastructure at CARFAX
MongoDB
 
Introduction to Azure DocumentDB
Ike Ellis
 
NoSQL Tel Aviv Meetup#1: NoSQL Data Modeling
NoSQL TLV
 
An Enterprise Architect's View of MongoDB
MongoDB
 

Similar to MongoDB - An Agile NoSQL Database (20)

PPT
MongoDB Tick Data Presentation
MongoDB
 
PPTX
L’architettura di Classe Enterprise di Nuova Generazione
MongoDB
 
PPTX
Webinar: Scaling MongoDB
MongoDB
 
PPTX
L’architettura di classe enterprise di nuova generazione
MongoDB
 
PPTX
MongoDB Days Germany: Data Processing with MongoDB
MongoDB
 
PPTX
Webinar: Enterprise Data Management in the Era of MongoDB and Data Lakes
MongoDB
 
PPTX
Dataweek-Talk-2014
ardan-bkennedy
 
PPTX
Agility and Scalability with MongoDB
MongoDB
 
PPTX
L'architettura di classe enterprise di nuova generazione - Massimo Brignoli
Data Driven Innovation
 
PPTX
MongoDB Schema Design: Practical Applications and Implications
MongoDB
 
PDF
MongoDB Basics
Sarang Shravagi
 
PDF
Mongodb
Apurva Vyas
 
PDF
ArangoDB – A different approach to NoSQL
ArangoDB Database
 
PPT
No SQL and MongoDB - Hyderabad Scalability Meetup
Hyderabad Scalability Meetup
 
PDF
Mongodb at-gilt-groupe-seattle-2012-09-14-final
MongoDB
 
PPTX
Python Ireland Conference 2016 - Python and MongoDB Workshop
Joe Drumgoole
 
PDF
Mongo db transcript
foliba
 
PPT
NoSQL Analytics: JSON Data Analysis and Acceleration in MongoDB World
Ajay Gupte
 
PPTX
When to Use MongoDB
MongoDB
 
MongoDB Tick Data Presentation
MongoDB
 
L’architettura di Classe Enterprise di Nuova Generazione
MongoDB
 
Webinar: Scaling MongoDB
MongoDB
 
L’architettura di classe enterprise di nuova generazione
MongoDB
 
MongoDB Days Germany: Data Processing with MongoDB
MongoDB
 
Webinar: Enterprise Data Management in the Era of MongoDB and Data Lakes
MongoDB
 
Dataweek-Talk-2014
ardan-bkennedy
 
Agility and Scalability with MongoDB
MongoDB
 
L'architettura di classe enterprise di nuova generazione - Massimo Brignoli
Data Driven Innovation
 
MongoDB Schema Design: Practical Applications and Implications
MongoDB
 
MongoDB Basics
Sarang Shravagi
 
Mongodb
Apurva Vyas
 
ArangoDB – A different approach to NoSQL
ArangoDB Database
 
No SQL and MongoDB - Hyderabad Scalability Meetup
Hyderabad Scalability Meetup
 
Mongodb at-gilt-groupe-seattle-2012-09-14-final
MongoDB
 
Python Ireland Conference 2016 - Python and MongoDB Workshop
Joe Drumgoole
 
Mongo db transcript
foliba
 
NoSQL Analytics: JSON Data Analysis and Acceleration in MongoDB World
Ajay Gupte
 
When to Use MongoDB
MongoDB
 
Ad

Recently uploaded (20)

PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Ad

MongoDB - An Agile NoSQL Database

  • 1. An Agile NoSQL Database Gaurav Awasthi Technology Evangelist [email protected]
  • 2. Big Data - The New World Order • A massive volume of both structured and unstructured data that it's difficult to process using traditional database and software techniques • As of 2012, every day 2.5 quintillion bytes of data were created • Data Source: – Climate sensors – Social media – Digital pictures and videos – Purchase transaction records – Cell phone GPS signals • Characteristics : Volume, Velocity and Variety • Key Usage: leverage data-driven strategies to innovate, compete, and capture value from deep and up-to-real-time information
  • 3. NoSQL Defining Characteristics – Scaling out on commodity hardware – Aggregate structure – Schema-less attitude – Impedance Mismatch : Relational model in-memory data structures – Big Data : Massive data being stored and transacted – Reduced Data Management and Tuning Requirements – Eventually consistent / BASE (not ACID)
  • 4. Mongo DB • Open-source, Document-oriented, popular for its agile and scalable approach • Notable Features : – JSON/BSON data model with dynamic schema – Auto-sharding for horizontal scalability – Built-in replication with automated fail-overs – Full, flexible index support including secondary indexes – Rich document-based queries – Aggregation framework and Map / Reduce – GridFS for large file storage
  • 5. Agile & MongoDB Characteristics supporting Agility – Allows dynamic schema (schemaless) – JSON format, which maps well to object-style data. – Simplified db tuning – Cost Effective and Simple replica sets – Easy scale out due to simplified sharding mechanism – Rich content using GridFS
  • 6. A Demo for Schema-less way
  • 7. A Demo Query Plan and DB Tuning
  • 8. Replication • Replica set – a mongod cluster • Ensures High Availability, Redundancy, Automated Fail- over • Writes to the Primary, Reads from all • Asynchronous replication • In conventional terms, more like Master/Slave replication • Members can be configured to be: Secondary only / Non- Voting / Hidden / Arbiters / Delayed
  • 10. A Demo for Replica Set • Run the 3 mongod processes • Demo that they are running on different ports using ps –ef • Initiate the repl set and add members • Demo which ones are primary and secondary using rs.status() • Now insert docs into a collection in primary • Demo that its replicated to secondary • Thereby proving how straight fwd is replication • Briefly touch upon the steps for sharding too
  • 11. Case Study – E-Commerce Shop Architecture Diagram Product supplier catalog App External Feeds (container) Mongo Payment Gateway
  • 13. JSON structure {"_id" : "compatibleHandsets" : [{ ObjectId("5082626144ae3a6879 "manufacturer" : { 19c094"), "name" : "Apple", "name" : "iPhone 5 Pop Blue Case", "canonicalName" : "apple" }, "canonicalName" : "iphone-5-pop- blue-case", "model" : "iPhone 5 16GB", "name" : "retailPrice" : 19.99, "Apple_iPhone_5_16GB", "productCode" : "G4IC542G", "canonicalName" : "category" : { "apple_iphone_5_16gb" }], "categoryCode" : "CAS", "name" : "Cases", review_ids : ["review_id1", "canonicalName" : "cases" "review_id2"] }, }
  • 14. Design decisions with Mongo • Agile incremental releases • Unstructured data from multiple suppliers • GridFS : Stores large binary objects • Spring Data Services • Embedding and linking documents • Easy replication set up for AWS
  • 15. Conclusion and Thanks MongoDB: the right persistence tool for Agile Development for multitude of business problems in the new world order References: • Mongodb.org

Editor's Notes

  • #12: Show the Accessory Shop site and explain the functionality in brief