SlideShare une entreprise Scribd logo
1  sur  64
Télécharger pour lire hors ligne
Tugdual Grall
Technical Evangelist
tug@mongodb.com
@tgrall
Introduction
Philippe Charriere
DirecteurTechnique
pcharriere@sqli.com
@k33g_org
Introduction to NoSQLwith MongoDB
Tugdual Grall
Technical Evangelist
tug@mongodb.com
@tgrall
Philippe Charriere
DirecteurTechnique
pcharriere@sqli.com
@k33g_org
Tugdual “Tug” Grall
• MongoDB
– Technical Evangelist
• Couchbase
– Technical Evangelist
• eXo
– CTO
• Oracle
– Developer/Product Manager
– Mainly Java/SOA
• Developer in consulting firms
{“about” : “me”}
• Web
– @tgrall
– http://blog.grallandco.com
– tgrall
• NantesJUG cofounder

• Pet Project
– http://www.resultri.com

• tug@mongodb.com
• tugdual@gmail.com
Why MongoDB?
The relational model : 1970
Big Data
Big Users
http://www.theconnectivist.com/	
  	
  &	
  Cisco
Living in the Post-transactional Future
Order-processing systems largely “done” (RDBMS);
new focus on better search and recommendations or
adapting prices on the fly (NoSQL)
Vast majority of its engineering is focused on
recommending better movies (NoSQL), not
processing monthly bills (RDBMS)
Easy part is processing the credit card (RDBMS).
Hard part is making it location aware, so it knows
where you are and what you’re buying (NoSQL)
Stay up!
.	
  .	
  .
Application
Scale out
Add more “Web” servers
RDBMS
Scale Up
Get bigger server
RDBMS
App	
  Server
NoSQL to Scale out!
.	
  .	
  .
Application
Scale out
Add more “Web” servers
NoSQL
Scale Out
Add more servers
NoSQL
App	
  Server
.	
  .	
  .
RDBMS Is Like a Spreadsheet
With “Relations” Between Rows
And makes things hard to change
Name Age Phone Email
New Column
New Table
New Table
New Column
Relational Database Challenges
Data Types
Unstructured data
Semi-structured data
Polymorphic data
Agile Development
Iterative
Short development cycles
New workloads
Volume of Data
Petabytes of data
Trillions of records
Millions of queries/sec
New Architectures
Horizontal scaling
Commodity servers
Cloud computing
Operational Database Landscape
Scalability&Performance
Depth of Functionality
key/value stores
wide column
RDBMS
MongoDB
Data Model
Product Catalog
Baseball Bat
-3 length to weight ratio
2-5/8" barrel diameter
Two-piece construction
R2 alloy barrel provides outstanding durability, performance and "pop"
R2 composite handle shifts weight into the bat's knob for ultra-fast swing speeds
Rifle Barrel design removes weight from the barrel for thinner wall thickness
Acoustic barrel offers that sweet-sounding "ping"
Contact grip helps eliminate sting and vibration
AIR Elite is RIP-IT's® fastest BBCOR bat and the one with the most performance
BBCOR certified - approved for high school and collegiate play
Includes RIP-IT's® "Love It Or Return It" 30 Day Refund Policy with free return
shipping
Manufacturer's warranty: 400 days
Made in the USA
Model: B1403E
Bat Product Table
Category Model Name Brand
Length to
weight
ratio
Barrel
Dia
Type Barrel Handle Cert. Country Price
Bat B1403E Air Elite RIP-IT -3 2 5/8 Composite R2 Alloy
R2
composite BBCOR USA $399.99
Bat B1403 Prototype RIP-IT -3 2 5/8 One-piece R1 Alloy R1 Alloy BBCOR USA $199.99
Bat MCB1B One Marucci -3 2 5/8 One-piece
AZ3000
aluminum
AZ3000
aluminum BBCOR Imported $199.99
Bat BB14S1 S1 Easton -3 2 5/8 Composite IMX
SIC Black
Carbon BBCOR China $399.99
Lets Add Gloves
Size: 12"
Infield/Outfield/Pitcher model
2-Piece Web pattern
Most popular MLB® pattern among pitchers
Pro Stock® American steerhide leather offers rugged durability and a superior feel
Dual-Welting™ on "exposed edges" of the fingers helps maintain pocket shape and
durability
Pro Stock™ hand-designed pattern for unbeatable craftsmanship
Dri-Lex® ultra-breathable wrist lining repels moisture from your hand
Black leather with rich brown embellishments
Pattern: B212
Model: WTA2000BBB212
Wilson
Bat and Glove Product Table
Category Model Name Brand
Length to
weight
ratio
Barrel Dia Type Barrel Handle Cert. Country Price
Bat B1403E Air Elite RIP-IT -3 2 5/8 Composite R2 Alloy
R2
composite BBCOR USA $399.99
Bat B1403 Prototype RIP-IT -3 2 5/8 One-piece R1 Alloy R1 Alloy BBCOR USA $199.99
Bat MCB1B One Marucci -3 2 5/8 One-piece AL AL BBCOR Imported $199.99
Bat BB14S1 S1 Easton -3 2 5/8 Composite IMX
SIC Black
Carbon BBCOR China $399.99
Category Model Name Brand Size Position Pattern Web
Pattern
Material Color Country Price
Glove
WTA2000B
BB212 A2000 Wilson 12" Infield B212 2-piece Leather black Vietnam $299.99
Glove PRO112PT HOH Pro Rawlings 11.25" Outfield Pro taper
Modified
Trap-Eze
Horween
Leather black China $229.99
Add some baseballs
Cover: Full grain leather for excellent durability
Core: Cushioned cork core
Additions/Technologies: Made to the exact specifications of MLB
Stitching/Seams: 108 classic red stitches/Rawlings® Major League seaming
League/Certification(s): MLB
Balls included per purchase: individual
Recommended Age: All ages
Model : ROMLB
Rawlings
Bat and Glove Product Table
Category Model Name Brand
Length to
weight
ratio
Barrel Dia Type Barrel Handle Cert. Country Price
Bat B1403E Air Elite RIP-IT -3 2 5/8 Composite R2 Alloy
R2
composite BBCOR USA $399.99
Bat B1403 Prototype RIP-IT -3 2 5/8 One-piece R1 Alloy R1 Alloy BBCOR USA $199.99
Bat MCB1B One Marucci -3 2 5/8 One-piece AL AL BBCOR Imported $199.99
Bat BB14S1 S1 Easton -3 2 5/8 Composite IMX
SIC Black
Carbon BBCOR China $399.99
Category Model Name Brand Size Position Pattern Web
Pattern
Material Color Country Price
Glove
WTA2000B
BB212 A2000 Wilson 12" Infield B212 2-piece Leather black Vietnam $299.99
Glove PRO112PT HOH Pro Rawlings 11.25" Outfield Pro taper
Modified
Trap-Eze
Horween
Leather black China $229.99
Category Model Name Brand Color Cover Core Cert. Country Price
Baseball
DICRLLB1
PBG
Little
League Rawlings white Leather
Cork

rubber
Little
League China $4.99
Baseball ROML MLB Rawlings white Leather cork China $6.99
Sparse Table
Category Model Name Brand
Length to
weight
ratio
Barrel Dia Type Barrel Handle
Certificati
on
Country Price Size Position Pattern
Web
Pattern
Material Color Cover Core
Bat B1403E Air	
  Elite RIP-­‐IT -­‐3 2	
  5/8 Composite R2	
  Alloy
R2	
  
composite BBCOR USA $399.99	
  
Bat B1403 Prototype RIP-­‐IT -­‐3 2	
  5/8 One-­‐piece R1	
  Alloy R1	
  Alloy BBCOR USA $199.99	
  
Bat MCB1B One Marucci -­‐3 2	
  5/8 One-­‐piece
AZ3000	
  
aluminum
AZ3000	
  
aluminum BBCOR Imported $199.99	
  
Bat BB14S1 S1 Easton -­‐3 2	
  5/8 Composite IMX
SIC	
  Black	
  
Carbon BBCOR China $399.99	
  
Glove
WTA2000BB
B212 A2000 Wilson Vietnam $299.99	
   12" Infield B212 2-­‐piece Leather black
Glove PRO112PT HOH	
  Pro Rawlings China $229.99	
   11.25" Outfield Pro	
  taper
Modified	
  
Trap-­‐Eze
Horween	
  
Leather black
Baseball
DICRLLB1PB
G Little	
  League Rawlings Little	
  League China $4.99	
   white Leather
cork	
  and	
  
rubber
Baseball ROML MLB Rawlings China $6.99	
   white Leather cork
Continue adding columns as you add new products
Maybe this design will work better
prodID property value
1 length/weight -3
1 barrel dia 2 5/8
1 type composite
1 certification BBCOR
…
5 size 12
5 position infield
5 pattern B212
5 material leather
5 color black
…
8 color white
8 cover leather
8 core cork
prodID
Category Model Name Brand Country Price
1 Bat B1403E Air Elite RIP-IT USA $399.99
2 Bat B1403 Prototype RIP-IT USA $199.99
3 Bat MCB1B One Marucci Imported $199.99
4 Bat BB14S1 S1 Easton China $399.99
5 Glove
WTA2000BBB
212 A2000 Wilson Vietnam $299.99
6 Glove PRO112PT HOH Pro Rawlings China $229.99
7 Baseball DICRLLB1PBG Little League Rawlings China $4.99
8 Baseball ROML MLB Rawlings China $6.99
MongoDB uses “Documents”
{
category:“glove”,
model:“PRO112PT”,
name:“Air Elite”,
brand:“Rawlings”,
price: 229.99,
available: Date(“2013-03-31”)
}
Fields
Values
Field values are
typed
string
number
date
Documents are rich structures
{
category:“glove”,
model:“PRO112PT”,
name:“Air Elite”,
brand:“Rawlings”,
price: 229.99,
available: Date(“2013-03-31”),
position: [“infield”,“outfield”,“pitcher”]
}
Fields	
  can	
  contain	
  arrays
Documents are rich structures
{
category:“glove”,
model:“PRO112PT”,
name:“Air Elite”,
brand:“Rawlings”,
price: 229.99,
available: Date(“2013-03-31”),
position: [“infield”,“outfield”,“pitcher”],
endorsed: {name:“Ryan Howard”,
team:“Phillies”,
position:“first base”},
}
Fields can contain sub-
documents
Documents are rich structures{
category:“glove”,
model:“PRO112PT”,
name:“Air Elite”,
brand:“Rawlings”,
price: 229.99,
available: Date(“2013-03-31”),
position: [“infield”,“outfield”,“pitcher”],
endorsed: {name:“Ryan Howard”,
team:“Phillies”,
position:“first base”},
history: [{date: Date(“2013-03-31”), price: 279.99},
{date: Date(“2013-06-01”),price: 259.79},
{date: Date(“2013-08-15”),price: 229.99}]
}
Fields can contain an
array of sub-documents
Variation is easy with document model
{
category: bat,
model: B1403E,
name:Air Elite,
brand:“Rip-IT”,
price: 399.99
diameter:“2 5/8”,
barrel: R2Alloy,
handle: R2 Composite,
type: composite,
}
{
category: glove,
model: PRO112PT,
name:Air Elite,
brand:“Rawlings”,
price:“229.99”
size: 11.25,
position: outfield,
pattern:“Pro taper”,
material: leather,
color: black
}
{
category: ball,
model: ROML,
name: MLB,
brand:“Rawlings”,
price:“6.99”
cover: leather,
core: cork,
color: white
}
{
"_id" : 45218468309,
"date" : ISODate("2015-01-28T09:40:50.615Z"),
"customer" : {
"id" : 654321,
"name" : "John Doe"
},
"ship_to" : {
"name" : "John Doe",
"street" : “Rue du Code",
"city" : “69000 Lyon",
},
"items" : [
{
"sku" : "WA34R",
"description" : "Wireless Qwerty Keyboard",
"quantity" : 1,
"unit_price" : 41.5,
"price" : 41.5,
"vat" : 20
},
{
"sku" : "MW003",
"description" : "MiWatch",
"quantity" : 2,
"unit_price" : 245,
"price" : 490,
"vat" : 20
}
],
"price" :
{ "total" : 531.5 , "vat" : 106.3 }
}
Document Data Model
Relational MongoDB
Document Data Model
Relational MongoDB
{ 	
  
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, … }	
  
}	
  
}
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
{
_id : ObjectId("4c4ba5e5e8aabf3"),
employee_name: "Dunham, Justin",
department : "Marketing",
title : "Product Manager, Web",
report_up: "Neray, Graham",
pay_band: “C",
benefits : [
{ type : "Health",
plan : "PPO Plus" },
{ type : "Dental",
plan : "Standard" }
]
}
Morphia
MEAN	
  Stack
Java Python PerlRuby
Support for the most popular languages and frameworks
Drivers & Ecosystem
Demonstration
MongoDB Overview
‹#›
CREATE APPLICATIONS 

NEVER BEFORE POSSIBLE
AGILE SCALABLE
‹#›
MongoDB
GENERAL PURPOSE DOCUMENT DATABASE OPEN-SOURCE
THE LARGEST ECOSYSTEM
9,000,000+

MongoDB Downloads
200,000+

Online Education Registrants
35,000+

MongoDB User Group Members
35,000+

MongoDB Management Service (MMS) Users
750+

Technology and Services Partners
2,000+

Customers Across All Industries
‹#›
MongoDB and Enterprise IT Stack
MongoDB, Inc.
400+ employees 2,000+ customers
Over $311 million in funding13 offices around the world
High Availability & Scalability
HighAvailability
Replica Set – two or more copies

Self-healing shard

Addresses availability considerations:
High Availability
Disaster Recovery
Maintenance

Deployment Flexibility
Data locality to users
Workload isolation: operational & analytics
Scalability
Three types of sharding: hash-based, range-based, tag-aware
Increase or decrease capacity as you go
Automatic balancing
Query Routing
Multiple query optimization models
Each sharding option appropriate for
different apps
Demonstration
DeploymentArchitectures & Operations
Single Data Center
Automated failover
Tolerates server failures
Tolerates rack failures
Number of replicas defines failure
tolerance
Active/Active Data Center
Tolerates server, rack, data center failures, network partitions
Read Global/Write Local
Replicate Data Near Users
Single-click provisioning, scaling &
upgrades, admin tasks
Monitoring, with charts, dashboards and
alerts on 100+ metrics
Backup and restore, with point-in-time
recovery, support for sharded clusters
MongoDB Ops Manager
The Best Way to Manage MongoDB In Your Data Center
Up to 95% Reduction in Operational Overhead
How MongoDB Ops Manager helps you
Scale	
  EasilyMeet	
  SLAs
Best	
  Practices,	
  
Automated
Cut	
  Management	
  
Overhead
How Ops Manager Works
Ops Manager
mongod mongodmongod
Agent Agent Agent
New
Config. N
ew
C
onfig.
NewConfig.
Integrates with Existing Infrastructure
*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: Partner Solutions
Enterprise-Grade Security
Scalability & Performance
Scale
250M Ticks/Sec
300K+ Ops/Sec
500K+ Ops/SecFed Agency
Performance
1,400 Servers
1,000+ Servers
250+ Servers
Entertainment Co.
Cluster
Petabytes
10s of billions of objects
13B documents
Data
Asian Internet Co.
Example: MongoDB Management Service
Cloud service for managing MongoDB systems
100+ system metrics visualized and alerted
35,000+ MongoDB systems submitting data every 60 seconds
90% updates, 10% reads
~30,000 updates/second
~3.2B operations/day
Eight x86-64 servers
MongoDB Performance*
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
Ops/sec
1,200,000 500,000 30,000
* These figures are provided as examples. Your application governs your performance.
For More Information
Resource Location
Case Studies mongodb.com/customers
Presentations mongodb.com/presentations
Free Online Training education.mongodb.com
Webinars and Events mongodb.com/events
Documentation docs.mongodb.org
MongoDB Downloads mongodb.com/download
Additional Info info@mongodb.com
Tugdual Grall
Technical Evangelist
tug@mongodb.com
@tgrall
Questions?

Contenu connexe

Similaire à Introduction to NoSQL with MongoDB - SQLi Workshop

eDays - Quadrem Approach
eDays - Quadrem ApproacheDays - Quadrem Approach
eDays - Quadrem ApproachJens Brown
 
KOŠARKARSKI MINI KOŠ SKLZ
KOŠARKARSKI MINI KOŠ SKLZKOŠARKARSKI MINI KOŠ SKLZ
KOŠARKARSKI MINI KOŠ SKLZŽan Sklz
 
Copper bonded-earth-rod-manufacturer
Copper bonded-earth-rod-manufacturerCopper bonded-earth-rod-manufacturer
Copper bonded-earth-rod-manufacturerUjjwal Shah
 
Copper bonded-earthing-rod-manufacturer
Copper bonded-earthing-rod-manufacturerCopper bonded-earthing-rod-manufacturer
Copper bonded-earthing-rod-manufacturerUjjwal Shah
 
Custom dresser layout plans
Custom dresser layout plansCustom dresser layout plans
Custom dresser layout plansMiguel Zamarripa
 
2016 Catalogue track and field 160318
2016 Catalogue track and field 1603182016 Catalogue track and field 160318
2016 Catalogue track and field 160318George Chao (Sport)
 
Thomson Linear RoundRail 1BC Specs
Thomson Linear RoundRail 1BC SpecsThomson Linear RoundRail 1BC Specs
Thomson Linear RoundRail 1BC SpecsElectromate
 
Thomson roundrail 1_bc_specsheet
Thomson roundrail 1_bc_specsheetThomson roundrail 1_bc_specsheet
Thomson roundrail 1_bc_specsheetElectromate
 

Similaire à Introduction to NoSQL with MongoDB - SQLi Workshop (13)

eDays - Quadrem Approach
eDays - Quadrem ApproacheDays - Quadrem Approach
eDays - Quadrem Approach
 
Airfoil
AirfoilAirfoil
Airfoil
 
KOŠARKARSKI MINI KOŠ SKLZ
KOŠARKARSKI MINI KOŠ SKLZKOŠARKARSKI MINI KOŠ SKLZ
KOŠARKARSKI MINI KOŠ SKLZ
 
Copper bonded-earth-rod-manufacturer
Copper bonded-earth-rod-manufacturerCopper bonded-earth-rod-manufacturer
Copper bonded-earth-rod-manufacturer
 
Food line Equipments
Food line EquipmentsFood line Equipments
Food line Equipments
 
Copper bonded-earthing-rod-manufacturer
Copper bonded-earthing-rod-manufacturerCopper bonded-earthing-rod-manufacturer
Copper bonded-earthing-rod-manufacturer
 
Custom dresser layout plans
Custom dresser layout plansCustom dresser layout plans
Custom dresser layout plans
 
Rg 2688
Rg 2688Rg 2688
Rg 2688
 
Occidental Leather Catalog
Occidental Leather CatalogOccidental Leather Catalog
Occidental Leather Catalog
 
2016 Catalogue track and field 160318
2016 Catalogue track and field 1603182016 Catalogue track and field 160318
2016 Catalogue track and field 160318
 
2016 Catalogue track and field
2016 Catalogue track and field2016 Catalogue track and field
2016 Catalogue track and field
 
Thomson Linear RoundRail 1BC Specs
Thomson Linear RoundRail 1BC SpecsThomson Linear RoundRail 1BC Specs
Thomson Linear RoundRail 1BC Specs
 
Thomson roundrail 1_bc_specsheet
Thomson roundrail 1_bc_specsheetThomson roundrail 1_bc_specsheet
Thomson roundrail 1_bc_specsheet
 

Plus de Tugdual Grall

Introduction to Streaming with Apache Flink
Introduction to Streaming with Apache FlinkIntroduction to Streaming with Apache Flink
Introduction to Streaming with Apache FlinkTugdual Grall
 
Introduction to Streaming with Apache Flink
Introduction to Streaming with Apache FlinkIntroduction to Streaming with Apache Flink
Introduction to Streaming with Apache FlinkTugdual Grall
 
Fast Cars, Big Data - How Streaming Can Help Formula 1
Fast Cars, Big Data - How Streaming Can Help Formula 1Fast Cars, Big Data - How Streaming Can Help Formula 1
Fast Cars, Big Data - How Streaming Can Help Formula 1Tugdual Grall
 
Lambda Architecture: The Best Way to Build Scalable and Reliable Applications!
Lambda Architecture: The Best Way to Build Scalable and Reliable Applications!Lambda Architecture: The Best Way to Build Scalable and Reliable Applications!
Lambda Architecture: The Best Way to Build Scalable and Reliable Applications!Tugdual Grall
 
Proud to be Polyglot - Riviera Dev 2015
Proud to be Polyglot - Riviera Dev 2015Proud to be Polyglot - Riviera Dev 2015
Proud to be Polyglot - Riviera Dev 2015Tugdual Grall
 
Enabling Telco to Build and Run Modern Applications
Enabling Telco to Build and Run Modern Applications Enabling Telco to Build and Run Modern Applications
Enabling Telco to Build and Run Modern Applications Tugdual Grall
 
Proud to be polyglot
Proud to be polyglotProud to be polyglot
Proud to be polyglotTugdual Grall
 
Devoxx 2014 : Atelier MongoDB - Decouverte de MongoDB 2.6
Devoxx 2014 : Atelier MongoDB - Decouverte de MongoDB 2.6Devoxx 2014 : Atelier MongoDB - Decouverte de MongoDB 2.6
Devoxx 2014 : Atelier MongoDB - Decouverte de MongoDB 2.6Tugdual Grall
 
Some cool features of MongoDB
Some cool features of MongoDBSome cool features of MongoDB
Some cool features of MongoDBTugdual Grall
 
Building Your First MongoDB Application
Building Your First MongoDB ApplicationBuilding Your First MongoDB Application
Building Your First MongoDB ApplicationTugdual Grall
 
Softshake 2013: Introduction to NoSQL with Couchbase
Softshake 2013: Introduction to NoSQL with CouchbaseSoftshake 2013: Introduction to NoSQL with Couchbase
Softshake 2013: Introduction to NoSQL with CouchbaseTugdual Grall
 
Introduction to NoSQL with Couchbase
Introduction to NoSQL with CouchbaseIntroduction to NoSQL with Couchbase
Introduction to NoSQL with CouchbaseTugdual Grall
 
Why and How to integrate Hadoop and NoSQL?
Why and How to integrate Hadoop and NoSQL?Why and How to integrate Hadoop and NoSQL?
Why and How to integrate Hadoop and NoSQL?Tugdual Grall
 
NoSQL Matters 2013 - Introduction to Map Reduce with Couchbase 2.0
NoSQL Matters 2013 - Introduction to Map Reduce with Couchbase 2.0NoSQL Matters 2013 - Introduction to Map Reduce with Couchbase 2.0
NoSQL Matters 2013 - Introduction to Map Reduce with Couchbase 2.0Tugdual Grall
 
Big Data Paris : Hadoop and NoSQL
Big Data Paris : Hadoop and NoSQLBig Data Paris : Hadoop and NoSQL
Big Data Paris : Hadoop and NoSQLTugdual Grall
 
Big Data Israel Meetup : Couchbase and Big Data
Big Data Israel Meetup : Couchbase and Big DataBig Data Israel Meetup : Couchbase and Big Data
Big Data Israel Meetup : Couchbase and Big DataTugdual Grall
 
FOSDEM 2013 : Getting Started with Couchhbase Server 2.0
FOSDEM 2013 : Getting Started with Couchhbase Server 2.0FOSDEM 2013 : Getting Started with Couchhbase Server 2.0
FOSDEM 2013 : Getting Started with Couchhbase Server 2.0Tugdual Grall
 

Plus de Tugdual Grall (20)

Introduction to Streaming with Apache Flink
Introduction to Streaming with Apache FlinkIntroduction to Streaming with Apache Flink
Introduction to Streaming with Apache Flink
 
Introduction to Streaming with Apache Flink
Introduction to Streaming with Apache FlinkIntroduction to Streaming with Apache Flink
Introduction to Streaming with Apache Flink
 
Fast Cars, Big Data - How Streaming Can Help Formula 1
Fast Cars, Big Data - How Streaming Can Help Formula 1Fast Cars, Big Data - How Streaming Can Help Formula 1
Fast Cars, Big Data - How Streaming Can Help Formula 1
 
Lambda Architecture: The Best Way to Build Scalable and Reliable Applications!
Lambda Architecture: The Best Way to Build Scalable and Reliable Applications!Lambda Architecture: The Best Way to Build Scalable and Reliable Applications!
Lambda Architecture: The Best Way to Build Scalable and Reliable Applications!
 
Big Data Journey
Big Data JourneyBig Data Journey
Big Data Journey
 
Proud to be Polyglot - Riviera Dev 2015
Proud to be Polyglot - Riviera Dev 2015Proud to be Polyglot - Riviera Dev 2015
Proud to be Polyglot - Riviera Dev 2015
 
Enabling Telco to Build and Run Modern Applications
Enabling Telco to Build and Run Modern Applications Enabling Telco to Build and Run Modern Applications
Enabling Telco to Build and Run Modern Applications
 
MongoDB and Hadoop
MongoDB and HadoopMongoDB and Hadoop
MongoDB and Hadoop
 
Proud to be polyglot
Proud to be polyglotProud to be polyglot
Proud to be polyglot
 
Devoxx 2014 : Atelier MongoDB - Decouverte de MongoDB 2.6
Devoxx 2014 : Atelier MongoDB - Decouverte de MongoDB 2.6Devoxx 2014 : Atelier MongoDB - Decouverte de MongoDB 2.6
Devoxx 2014 : Atelier MongoDB - Decouverte de MongoDB 2.6
 
Some cool features of MongoDB
Some cool features of MongoDBSome cool features of MongoDB
Some cool features of MongoDB
 
Building Your First MongoDB Application
Building Your First MongoDB ApplicationBuilding Your First MongoDB Application
Building Your First MongoDB Application
 
Neotys conference
Neotys conferenceNeotys conference
Neotys conference
 
Softshake 2013: Introduction to NoSQL with Couchbase
Softshake 2013: Introduction to NoSQL with CouchbaseSoftshake 2013: Introduction to NoSQL with Couchbase
Softshake 2013: Introduction to NoSQL with Couchbase
 
Introduction to NoSQL with Couchbase
Introduction to NoSQL with CouchbaseIntroduction to NoSQL with Couchbase
Introduction to NoSQL with Couchbase
 
Why and How to integrate Hadoop and NoSQL?
Why and How to integrate Hadoop and NoSQL?Why and How to integrate Hadoop and NoSQL?
Why and How to integrate Hadoop and NoSQL?
 
NoSQL Matters 2013 - Introduction to Map Reduce with Couchbase 2.0
NoSQL Matters 2013 - Introduction to Map Reduce with Couchbase 2.0NoSQL Matters 2013 - Introduction to Map Reduce with Couchbase 2.0
NoSQL Matters 2013 - Introduction to Map Reduce with Couchbase 2.0
 
Big Data Paris : Hadoop and NoSQL
Big Data Paris : Hadoop and NoSQLBig Data Paris : Hadoop and NoSQL
Big Data Paris : Hadoop and NoSQL
 
Big Data Israel Meetup : Couchbase and Big Data
Big Data Israel Meetup : Couchbase and Big DataBig Data Israel Meetup : Couchbase and Big Data
Big Data Israel Meetup : Couchbase and Big Data
 
FOSDEM 2013 : Getting Started with Couchhbase Server 2.0
FOSDEM 2013 : Getting Started with Couchhbase Server 2.0FOSDEM 2013 : Getting Started with Couchhbase Server 2.0
FOSDEM 2013 : Getting Started with Couchhbase Server 2.0
 

Dernier

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 

Dernier (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 

Introduction to NoSQL with MongoDB - SQLi Workshop

  • 1. Tugdual Grall Technical Evangelist tug@mongodb.com @tgrall Introduction Philippe Charriere DirecteurTechnique pcharriere@sqli.com @k33g_org
  • 2. Introduction to NoSQLwith MongoDB Tugdual Grall Technical Evangelist tug@mongodb.com @tgrall Philippe Charriere DirecteurTechnique pcharriere@sqli.com @k33g_org
  • 3. Tugdual “Tug” Grall • MongoDB – Technical Evangelist • Couchbase – Technical Evangelist • eXo – CTO • Oracle – Developer/Product Manager – Mainly Java/SOA • Developer in consulting firms {“about” : “me”} • Web – @tgrall – http://blog.grallandco.com – tgrall • NantesJUG cofounder
 • Pet Project – http://www.resultri.com
 • tug@mongodb.com • tugdual@gmail.com
  • 5.
  • 9. Living in the Post-transactional Future Order-processing systems largely “done” (RDBMS); new focus on better search and recommendations or adapting prices on the fly (NoSQL) Vast majority of its engineering is focused on recommending better movies (NoSQL), not processing monthly bills (RDBMS) Easy part is processing the credit card (RDBMS). Hard part is making it location aware, so it knows where you are and what you’re buying (NoSQL)
  • 10. Stay up! .  .  . Application Scale out Add more “Web” servers RDBMS Scale Up Get bigger server RDBMS App  Server
  • 11. NoSQL to Scale out! .  .  . Application Scale out Add more “Web” servers NoSQL Scale Out Add more servers NoSQL App  Server .  .  .
  • 12. RDBMS Is Like a Spreadsheet
  • 14.
  • 15. And makes things hard to change Name Age Phone Email New Column New Table New Table New Column
  • 16. Relational Database Challenges Data Types Unstructured data Semi-structured data Polymorphic data Agile Development Iterative Short development cycles New workloads Volume of Data Petabytes of data Trillions of records Millions of queries/sec New Architectures Horizontal scaling Commodity servers Cloud computing
  • 17. Operational Database Landscape Scalability&Performance Depth of Functionality key/value stores wide column RDBMS MongoDB
  • 20. Baseball Bat -3 length to weight ratio 2-5/8" barrel diameter Two-piece construction R2 alloy barrel provides outstanding durability, performance and "pop" R2 composite handle shifts weight into the bat's knob for ultra-fast swing speeds Rifle Barrel design removes weight from the barrel for thinner wall thickness Acoustic barrel offers that sweet-sounding "ping" Contact grip helps eliminate sting and vibration AIR Elite is RIP-IT's® fastest BBCOR bat and the one with the most performance BBCOR certified - approved for high school and collegiate play Includes RIP-IT's® "Love It Or Return It" 30 Day Refund Policy with free return shipping Manufacturer's warranty: 400 days Made in the USA Model: B1403E
  • 21. Bat Product Table Category Model Name Brand Length to weight ratio Barrel Dia Type Barrel Handle Cert. Country Price Bat B1403E Air Elite RIP-IT -3 2 5/8 Composite R2 Alloy R2 composite BBCOR USA $399.99 Bat B1403 Prototype RIP-IT -3 2 5/8 One-piece R1 Alloy R1 Alloy BBCOR USA $199.99 Bat MCB1B One Marucci -3 2 5/8 One-piece AZ3000 aluminum AZ3000 aluminum BBCOR Imported $199.99 Bat BB14S1 S1 Easton -3 2 5/8 Composite IMX SIC Black Carbon BBCOR China $399.99
  • 22. Lets Add Gloves Size: 12" Infield/Outfield/Pitcher model 2-Piece Web pattern Most popular MLB® pattern among pitchers Pro Stock® American steerhide leather offers rugged durability and a superior feel Dual-Welting™ on "exposed edges" of the fingers helps maintain pocket shape and durability Pro Stock™ hand-designed pattern for unbeatable craftsmanship Dri-Lex® ultra-breathable wrist lining repels moisture from your hand Black leather with rich brown embellishments Pattern: B212 Model: WTA2000BBB212 Wilson
  • 23. Bat and Glove Product Table Category Model Name Brand Length to weight ratio Barrel Dia Type Barrel Handle Cert. Country Price Bat B1403E Air Elite RIP-IT -3 2 5/8 Composite R2 Alloy R2 composite BBCOR USA $399.99 Bat B1403 Prototype RIP-IT -3 2 5/8 One-piece R1 Alloy R1 Alloy BBCOR USA $199.99 Bat MCB1B One Marucci -3 2 5/8 One-piece AL AL BBCOR Imported $199.99 Bat BB14S1 S1 Easton -3 2 5/8 Composite IMX SIC Black Carbon BBCOR China $399.99 Category Model Name Brand Size Position Pattern Web Pattern Material Color Country Price Glove WTA2000B BB212 A2000 Wilson 12" Infield B212 2-piece Leather black Vietnam $299.99 Glove PRO112PT HOH Pro Rawlings 11.25" Outfield Pro taper Modified Trap-Eze Horween Leather black China $229.99
  • 24. Add some baseballs Cover: Full grain leather for excellent durability Core: Cushioned cork core Additions/Technologies: Made to the exact specifications of MLB Stitching/Seams: 108 classic red stitches/Rawlings® Major League seaming League/Certification(s): MLB Balls included per purchase: individual Recommended Age: All ages Model : ROMLB Rawlings
  • 25. Bat and Glove Product Table Category Model Name Brand Length to weight ratio Barrel Dia Type Barrel Handle Cert. Country Price Bat B1403E Air Elite RIP-IT -3 2 5/8 Composite R2 Alloy R2 composite BBCOR USA $399.99 Bat B1403 Prototype RIP-IT -3 2 5/8 One-piece R1 Alloy R1 Alloy BBCOR USA $199.99 Bat MCB1B One Marucci -3 2 5/8 One-piece AL AL BBCOR Imported $199.99 Bat BB14S1 S1 Easton -3 2 5/8 Composite IMX SIC Black Carbon BBCOR China $399.99 Category Model Name Brand Size Position Pattern Web Pattern Material Color Country Price Glove WTA2000B BB212 A2000 Wilson 12" Infield B212 2-piece Leather black Vietnam $299.99 Glove PRO112PT HOH Pro Rawlings 11.25" Outfield Pro taper Modified Trap-Eze Horween Leather black China $229.99 Category Model Name Brand Color Cover Core Cert. Country Price Baseball DICRLLB1 PBG Little League Rawlings white Leather Cork
 rubber Little League China $4.99 Baseball ROML MLB Rawlings white Leather cork China $6.99
  • 26. Sparse Table Category Model Name Brand Length to weight ratio Barrel Dia Type Barrel Handle Certificati on Country Price Size Position Pattern Web Pattern Material Color Cover Core Bat B1403E Air  Elite RIP-­‐IT -­‐3 2  5/8 Composite R2  Alloy R2   composite BBCOR USA $399.99   Bat B1403 Prototype RIP-­‐IT -­‐3 2  5/8 One-­‐piece R1  Alloy R1  Alloy BBCOR USA $199.99   Bat MCB1B One Marucci -­‐3 2  5/8 One-­‐piece AZ3000   aluminum AZ3000   aluminum BBCOR Imported $199.99   Bat BB14S1 S1 Easton -­‐3 2  5/8 Composite IMX SIC  Black   Carbon BBCOR China $399.99   Glove WTA2000BB B212 A2000 Wilson Vietnam $299.99   12" Infield B212 2-­‐piece Leather black Glove PRO112PT HOH  Pro Rawlings China $229.99   11.25" Outfield Pro  taper Modified   Trap-­‐Eze Horween   Leather black Baseball DICRLLB1PB G Little  League Rawlings Little  League China $4.99   white Leather cork  and   rubber Baseball ROML MLB Rawlings China $6.99   white Leather cork Continue adding columns as you add new products
  • 27. Maybe this design will work better prodID property value 1 length/weight -3 1 barrel dia 2 5/8 1 type composite 1 certification BBCOR … 5 size 12 5 position infield 5 pattern B212 5 material leather 5 color black … 8 color white 8 cover leather 8 core cork prodID Category Model Name Brand Country Price 1 Bat B1403E Air Elite RIP-IT USA $399.99 2 Bat B1403 Prototype RIP-IT USA $199.99 3 Bat MCB1B One Marucci Imported $199.99 4 Bat BB14S1 S1 Easton China $399.99 5 Glove WTA2000BBB 212 A2000 Wilson Vietnam $299.99 6 Glove PRO112PT HOH Pro Rawlings China $229.99 7 Baseball DICRLLB1PBG Little League Rawlings China $4.99 8 Baseball ROML MLB Rawlings China $6.99
  • 28. MongoDB uses “Documents” { category:“glove”, model:“PRO112PT”, name:“Air Elite”, brand:“Rawlings”, price: 229.99, available: Date(“2013-03-31”) } Fields Values Field values are typed string number date
  • 29. Documents are rich structures { category:“glove”, model:“PRO112PT”, name:“Air Elite”, brand:“Rawlings”, price: 229.99, available: Date(“2013-03-31”), position: [“infield”,“outfield”,“pitcher”] } Fields  can  contain  arrays
  • 30. Documents are rich structures { category:“glove”, model:“PRO112PT”, name:“Air Elite”, brand:“Rawlings”, price: 229.99, available: Date(“2013-03-31”), position: [“infield”,“outfield”,“pitcher”], endorsed: {name:“Ryan Howard”, team:“Phillies”, position:“first base”}, } Fields can contain sub- documents
  • 31. Documents are rich structures{ category:“glove”, model:“PRO112PT”, name:“Air Elite”, brand:“Rawlings”, price: 229.99, available: Date(“2013-03-31”), position: [“infield”,“outfield”,“pitcher”], endorsed: {name:“Ryan Howard”, team:“Phillies”, position:“first base”}, history: [{date: Date(“2013-03-31”), price: 279.99}, {date: Date(“2013-06-01”),price: 259.79}, {date: Date(“2013-08-15”),price: 229.99}] } Fields can contain an array of sub-documents
  • 32. Variation is easy with document model { category: bat, model: B1403E, name:Air Elite, brand:“Rip-IT”, price: 399.99 diameter:“2 5/8”, barrel: R2Alloy, handle: R2 Composite, type: composite, } { category: glove, model: PRO112PT, name:Air Elite, brand:“Rawlings”, price:“229.99” size: 11.25, position: outfield, pattern:“Pro taper”, material: leather, color: black } { category: ball, model: ROML, name: MLB, brand:“Rawlings”, price:“6.99” cover: leather, core: cork, color: white }
  • 33. { "_id" : 45218468309, "date" : ISODate("2015-01-28T09:40:50.615Z"), "customer" : { "id" : 654321, "name" : "John Doe" }, "ship_to" : { "name" : "John Doe", "street" : “Rue du Code", "city" : “69000 Lyon", }, "items" : [ { "sku" : "WA34R", "description" : "Wireless Qwerty Keyboard", "quantity" : 1, "unit_price" : 41.5, "price" : 41.5, "vat" : 20 }, { "sku" : "MW003", "description" : "MiWatch", "quantity" : 2, "unit_price" : 245, "price" : 490, "vat" : 20 } ], "price" : { "total" : 531.5 , "vat" : 106.3 } } Document Data Model Relational MongoDB
  • 34. Document Data Model Relational MongoDB {   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, … }   }   }
  • 35. 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 { _id : ObjectId("4c4ba5e5e8aabf3"), employee_name: "Dunham, Justin", department : "Marketing", title : "Product Manager, Web", report_up: "Neray, Graham", pay_band: “C", benefits : [ { type : "Health", plan : "PPO Plus" }, { type : "Dental", plan : "Standard" } ] }
  • 36. Morphia MEAN  Stack Java Python PerlRuby Support for the most popular languages and frameworks Drivers & Ecosystem
  • 39. ‹#› CREATE APPLICATIONS 
 NEVER BEFORE POSSIBLE AGILE SCALABLE
  • 41. THE LARGEST ECOSYSTEM 9,000,000+
 MongoDB Downloads 200,000+
 Online Education Registrants 35,000+
 MongoDB User Group Members 35,000+
 MongoDB Management Service (MMS) Users 750+
 Technology and Services Partners 2,000+
 Customers Across All Industries
  • 43. MongoDB, Inc. 400+ employees 2,000+ customers Over $311 million in funding13 offices around the world
  • 44. High Availability & Scalability
  • 45. HighAvailability Replica Set – two or more copies
 Self-healing shard
 Addresses availability considerations: High Availability Disaster Recovery Maintenance
 Deployment Flexibility Data locality to users Workload isolation: operational & analytics
  • 46. Scalability Three types of sharding: hash-based, range-based, tag-aware Increase or decrease capacity as you go Automatic balancing
  • 47. Query Routing Multiple query optimization models Each sharding option appropriate for different apps
  • 50. Single Data Center Automated failover Tolerates server failures Tolerates rack failures Number of replicas defines failure tolerance
  • 51. Active/Active Data Center Tolerates server, rack, data center failures, network partitions
  • 54. Single-click provisioning, scaling & upgrades, admin tasks Monitoring, with charts, dashboards and alerts on 100+ metrics Backup and restore, with point-in-time recovery, support for sharded clusters MongoDB Ops Manager The Best Way to Manage MongoDB In Your Data Center Up to 95% Reduction in Operational Overhead
  • 55. How MongoDB Ops Manager helps you Scale  EasilyMeet  SLAs Best  Practices,   Automated Cut  Management   Overhead
  • 56. How Ops Manager Works Ops Manager mongod mongodmongod Agent Agent Agent New Config. N ew C onfig. NewConfig.
  • 57. Integrates with Existing Infrastructure
  • 58. *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: Partner Solutions Enterprise-Grade Security
  • 60. Scale 250M Ticks/Sec 300K+ Ops/Sec 500K+ Ops/SecFed Agency Performance 1,400 Servers 1,000+ Servers 250+ Servers Entertainment Co. Cluster Petabytes 10s of billions of objects 13B documents Data Asian Internet Co.
  • 61. Example: MongoDB Management Service Cloud service for managing MongoDB systems 100+ system metrics visualized and alerted 35,000+ MongoDB systems submitting data every 60 seconds 90% updates, 10% reads ~30,000 updates/second ~3.2B operations/day Eight x86-64 servers
  • 62. MongoDB Performance* 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 Ops/sec 1,200,000 500,000 30,000 * These figures are provided as examples. Your application governs your performance.
  • 63. For More Information Resource Location Case Studies mongodb.com/customers Presentations mongodb.com/presentations Free Online Training education.mongodb.com Webinars and Events mongodb.com/events Documentation docs.mongodb.org MongoDB Downloads mongodb.com/download Additional Info info@mongodb.com