SlideShare a Scribd company logo
MongoDB Workshop Sophia Conf 2018
MongoDB Workshop
Sophia Conf 2018
MongoDB Workshop Sophia Conf 2018
4
Document Model
{
first_name: ‘Paul’,
surname: ‘Miller’,
city: ‘London’,
location: {
type : ‘Point’,
coordinates : [45.123,47.232]
},
cars: [
{ model: ‘Bentley’,
year: 1973,
value: 100000, … },
{ model: ‘Rolls Royce’,
year: 1965,
value: 330000, … }
]
}
MongoDB
RDBMS
5
Developer Agility - Documents
{
first_name: ‘Paul’,
surname: ‘Miller’,
ID: 125678,
city: ‘London’,
location: {
type : ‘Point’,
coordinates : [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
Typed field values
Fields can contain
arrays
String
Number
Geo-Location
Fields
6
Developer Agility – Flexible Schema
{
product_name: ‘Acme Paint’,
sku: "123-567-845",
color: [‘Red’, ‘Green’],
size_oz: [8, 32],
finish: [‘satin’, ‘eggshell’]
}
{
product_name: ‘T-shirt’,
sku : "123-589-234",
size: [‘S’, ‘M’, ‘L’, ‘XL’],
color: [‘Heather Gray’ … ],
material: ‘100% cotton’,
wash: ‘cold’,
dry: ‘tumble dry low’
}
{
product_name: ‘Mountain Bike’,
sku : "143-534-678",
brake_style: ‘mechanical disc’,
color: ‘grey’,
frame_material: ‘aluminum’,
no_speeds: 21,
package_height: ‘7.5x32.9x55’,
weight_lbs: 44.05,
suspension_type: ‘dual’,
wheel_size_in: 26
}
7
Developer Agility – Use Your Favourites
Page 7
Morphia
MEAN Stack
8
Replica Set
SecondarySecondary
Primary
9
Sharded Cluster
Application
mongos mongos mongos
Driver
Config Server
MongoDB Workshop Sophia Conf 2018
11
Atlas - Database as a Service
Self-service, elastic,
and automated
Secure by defaultGlobal and highly
available
Continuous
backups
Real-time monitoring and
optimization
Cloud agnostic
12
Demo!
13
Workshop
● Download & install MongoDB 4.0.0
export PATH="$PATH:/home/polux/Softwares/mongodb-linux-x86_64-enterprise-debian92-4.0.0/bin"
● Start a simple node
mkdir data
mongod --dbpath data
● Import simple dataset
https://github.com/MaBeuLux88/mongodb-json-files
mongoimport --drop -d test -c grades grades.json
● Scripts to start a ReplicaSet and a Sharded Cluster
https://github.com/MaBeuLux88/MongoDB-Training
● Free ReplicaSet in MongoDB Atlas
https://cloud.mongodb.com
● Download, install and test MongoDB Compass
● Make a simple Hello World with the driver of your choice with MongoDB Atlas or localhost node
● Make some CRUD operations and discover the driver API
● Create a small program to listen a change streams
● Check you can listen the CRUD operations with your change stream
14
Conclusion
@MBeugnet MaBeuLux88
15
Community is awesome!
https://mongo-db.slack.com
https://mongodb.influitive.com/
16
MongoDB Events
MongoDB .local Paris
TOO
LATE
MongoDB Workshop Sophia Conf 2018

More Related Content

PPTX
Mercedes Rent Brno
PDF
MongoDB World 2019: From SQL to NoSQL -- Changing Your Mindset
PDF
From SQL to NoSQL -- Changing Your Mindset
PPTX
Jumpstart! From SQL to NoSQL -- Changing Your Mindset
PDF
MongoDB .local Houston 2019: Jumpstart: From SQL to NoSQL -- Changing Your Mi...
PDF
Jumpstart! Building Your First MongoDB App Using Atlas & Stitch
PPTX
Webinar: Getting Started with MongoDB - Back to Basics
PPTX
Intro to MongoDB (Extended Session)
Mercedes Rent Brno
MongoDB World 2019: From SQL to NoSQL -- Changing Your Mindset
From SQL to NoSQL -- Changing Your Mindset
Jumpstart! From SQL to NoSQL -- Changing Your Mindset
MongoDB .local Houston 2019: Jumpstart: From SQL to NoSQL -- Changing Your Mi...
Jumpstart! Building Your First MongoDB App Using Atlas & Stitch
Webinar: Getting Started with MongoDB - Back to Basics
Intro to MongoDB (Extended Session)

Similar to MongoDB Workshop Sophia Conf 2018 (20)

PPTX
Webinar: MongoDB and Analytics: Building Solutions with the MongoDB BI Connector
PDF
MongoDB .local Chicago 2019: From SQL to NoSQL -- Changing Your Mindset
PPTX
Intro to MongoDB Workshop
PDF
MongoDB: Back to Basics
PPTX
Webinar : Premiers pas avec MongoDB - Back to Basics
PDF
An Introduction to Mongo DB
PPTX
MongoDB Schema Design
PPTX
MongoDB Evenings DC: MongoDB - The New Default Database for Giant Ideas
PPTX
S01 e00 einfuehrung-in_mongodb
PPTX
The Right (and Wrong) Use Cases for MongoDB
PPTX
tranSMART Community Meeting 5-7 Nov 13 - Session 2: MongoDB: What, Why And When
PDF
MongoDB Meetup
PPTX
Building your first MEAN application
PPTX
Building your First MEAN App
PDF
Advanced Swift programming-Read and Write JSON.pdf
PPTX
Introduction to Azure DocumentDB
PPTX
Webinar: General Technical Overview of MongoDB for Ops Teams
PDF
Simplifying & accelerating application development with MongoDB's intelligent...
PPTX
MongoDB.local Dallas 2019: Building Your First MongoDB App Using Atlas & Stitch
PPTX
Jumpstart: Introduction to Schema Design
Webinar: MongoDB and Analytics: Building Solutions with the MongoDB BI Connector
MongoDB .local Chicago 2019: From SQL to NoSQL -- Changing Your Mindset
Intro to MongoDB Workshop
MongoDB: Back to Basics
Webinar : Premiers pas avec MongoDB - Back to Basics
An Introduction to Mongo DB
MongoDB Schema Design
MongoDB Evenings DC: MongoDB - The New Default Database for Giant Ideas
S01 e00 einfuehrung-in_mongodb
The Right (and Wrong) Use Cases for MongoDB
tranSMART Community Meeting 5-7 Nov 13 - Session 2: MongoDB: What, Why And When
MongoDB Meetup
Building your first MEAN application
Building your First MEAN App
Advanced Swift programming-Read and Write JSON.pdf
Introduction to Azure DocumentDB
Webinar: General Technical Overview of MongoDB for Ops Teams
Simplifying & accelerating application development with MongoDB's intelligent...
MongoDB.local Dallas 2019: Building Your First MongoDB App Using Atlas & Stitch
Jumpstart: Introduction to Schema Design
Ad

Recently uploaded (20)

PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
Essential Infomation Tech presentation.pptx
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Digital Strategies for Manufacturing Companies
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
wealthsignaloriginal-com-DS-text-... (1).pdf
How to Migrate SBCGlobal Email to Yahoo Easily
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
How to Choose the Right IT Partner for Your Business in Malaysia
Odoo Companies in India – Driving Business Transformation.pdf
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Essential Infomation Tech presentation.pptx
Operating system designcfffgfgggggggvggggggggg
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Digital Strategies for Manufacturing Companies
Softaken Excel to vCard Converter Software.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
VVF-Customer-Presentation2025-Ver1.9.pptx
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Design an Analysis of Algorithms I-SECS-1021-03
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
2025 Textile ERP Trends: SAP, Odoo & Oracle
Ad

MongoDB Workshop Sophia Conf 2018

  • 4. 4 Document Model { first_name: ‘Paul’, surname: ‘Miller’, city: ‘London’, location: { type : ‘Point’, coordinates : [45.123,47.232] }, cars: [ { model: ‘Bentley’, year: 1973, value: 100000, … }, { model: ‘Rolls Royce’, year: 1965, value: 330000, … } ] } MongoDB RDBMS
  • 5. 5 Developer Agility - Documents { first_name: ‘Paul’, surname: ‘Miller’, ID: 125678, city: ‘London’, location: { type : ‘Point’, coordinates : [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 Typed field values Fields can contain arrays String Number Geo-Location Fields
  • 6. 6 Developer Agility – Flexible Schema { product_name: ‘Acme Paint’, sku: "123-567-845", color: [‘Red’, ‘Green’], size_oz: [8, 32], finish: [‘satin’, ‘eggshell’] } { product_name: ‘T-shirt’, sku : "123-589-234", size: [‘S’, ‘M’, ‘L’, ‘XL’], color: [‘Heather Gray’ … ], material: ‘100% cotton’, wash: ‘cold’, dry: ‘tumble dry low’ } { product_name: ‘Mountain Bike’, sku : "143-534-678", brake_style: ‘mechanical disc’, color: ‘grey’, frame_material: ‘aluminum’, no_speeds: 21, package_height: ‘7.5x32.9x55’, weight_lbs: 44.05, suspension_type: ‘dual’, wheel_size_in: 26 }
  • 7. 7 Developer Agility – Use Your Favourites Page 7 Morphia MEAN Stack
  • 9. 9 Sharded Cluster Application mongos mongos mongos Driver Config Server
  • 11. 11 Atlas - Database as a Service Self-service, elastic, and automated Secure by defaultGlobal and highly available Continuous backups Real-time monitoring and optimization Cloud agnostic
  • 13. 13 Workshop ● Download & install MongoDB 4.0.0 export PATH="$PATH:/home/polux/Softwares/mongodb-linux-x86_64-enterprise-debian92-4.0.0/bin" ● Start a simple node mkdir data mongod --dbpath data ● Import simple dataset https://github.com/MaBeuLux88/mongodb-json-files mongoimport --drop -d test -c grades grades.json ● Scripts to start a ReplicaSet and a Sharded Cluster https://github.com/MaBeuLux88/MongoDB-Training ● Free ReplicaSet in MongoDB Atlas https://cloud.mongodb.com ● Download, install and test MongoDB Compass ● Make a simple Hello World with the driver of your choice with MongoDB Atlas or localhost node ● Make some CRUD operations and discover the driver API ● Create a small program to listen a change streams ● Check you can listen the CRUD operations with your change stream