2. Agenda
• MongoDB Philosophy
• Data Model
• High Availability through Replication
• Scalability through Sharding
• Deployment Architectures & Operations
2
9. Documents are Rich Data Structures
8
{
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
String
Number
Geo-
Coordinates
10. 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
9
27. Single Data Center
30
• Automated failover
• Tolerates server failures
• Tolerates rack failures
• Number of replicas
defines failure tolerance
Primary – A Primary – B Primary – C
Secondary Secondary – B – A Secondary – A
Secondary – C Secondary – C Secondary – B
28. Active/Standby Data Center
Primary – A Primary – B Primary – C
Secondary – B Secondary – C Secondary – A
Secondary – A Secondary – B Secondary – C
• Tolerates server and rack failure
• Standby data center
31
Data Center - West
Data Center - East
29. Active/Active Data Center
Primary – A Primary – B Primary – C
Secondary Secondary – C – A Secondary – B
Secondary – A Secondary – B Secondary – C
Secondary – B Secondary – C Secondary – A
Arbiter – A Arbiter – B Arbiter – C
• Tolerates server, rack, data center failures, network
partitions
32
Data Center - West
Data Center - East
Data Center - Central
32. MongoDB Management Service
Management for MongoDB, created by the engineers who
develop the database
• Automation, for single-click
provisioning, scaling &
upgrades
• Monitoring, with charts,
dashboards and alerts on 100+
metrics
• Backup and restore, with point-in-
35
time recovery, support for
sharded clusters
37. For More Information
Resource Location
Resource Location
MongoDB Downloads mongodb.com/download
Free Online Training mongodb.com/education
Webinars and Events mongodb.com/events
White Papers mongodb.com/white-papers
Case Studies mongodb.com/customers
Presentations mongodb.com/presentations
Documentation docs.mongodb.org
40