The document outlines a battle plan for creating scalable and resilient applications with MongoDB. It will cover introductory topics on MongoDB including NoSQL, JSON/BSON, CRUD operations, indexes, replica sets, read preference, write concern, and read concern. It will then demonstrate setting up a MongoDB-based IoT project, migrating it to the cloud using Atlas, and implementing features like change streams and alerts. Advanced topics like sharded clusters, MongoDB 4.0 transactions, and Stitch will also be covered.
4. 4
Battle Plan
Intro
• Presentation MongoDB
– NoSQL
– BigData
– JSON/BSON
– CRUD
– Indexes
– Replica Set
– Read Preference
– Write Concern
– Read Concern
• Presentation Mongo-IOT Project
• Live coding mongo-iot server on localhost
5. 5
Battle Plan
Cloud
• Presentation MongoDB Atlas
• Migrate to Atlas
• Presentation Sharded Cluster
• Migrate mongo-iot to AWS with VPC
• Start generator
• Real Time graphs and metrics in Atlas
6. 6
Battle Plan - MongoDB 3.6
• MongoDB Compass
• Aggregation Framework in Compass
• Demo 3.6
– Retryable Writes
– Causal Consistency
– Change Streams
• Live coding analyser with change streams
• Deploy analyser on AWS
• Live coding alert-manager
• Deploy alert-manager on AWS and Slack
28. 28
Operational Agility – 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
40. 40
How Data Is Distributed
• Initially 1 chunk
• Default max chunk size: 64mb
• MongoDB automatically splits & migrates chunks when max
reached
Shard 1 Shard 2