Jumpstart! Building Your First
MongoDB App Using Atlas & Stitch
Prashant Gupta , Senior Solutions Architect, MongoDB
Focus Your Energy Where You Can Make a
Difference
App Backend Infrastructure
Core Database Functionality
Storage
Service integrations, data access control
Code that moves the business forward
Managing OS, Scale, Security, Backups, etc.
Time
40%
40%
20%
Prashant Gupta
Senior Solutions Architect, MongoDB
@gamepop
Agenda
What is MongoDB?
What is Atlas?
Build your very first app using MongoDB and Stitch in under 40 minutes
What is MongoDB?
What is MongoDB?
MongoDB is a cross-platform and open-source document-oriented
general purpose database.
Tabular (Relational) Data Model
Related data split across multiple records and tables
Document Data Model
Related data contained in a single, rich document
{
"_id" : ObjectId("5ad88534e3632e1a35a58d00"),
"name" : {
"first" : "John",
"last" : "Doe" },
"address" : [
{ "location" : "work",
"address" : {
"street" : "16 Hatfields",
"city" : "London",
"postal_code" : "SE1 8DJ"},
"geo" : { "type" : "Point", "coord" : [
51.5065752,-0.109081]}},
+ {...}
],
"phone" : [
{ "location" : "work",
"number" : "+44-1234567890"},
+ {...}
],
"dob" : ISODate("1977-04-01T05:00:00Z"),
"retirement_fund" : NumberDecimal("1292815.75")
}
MongoDB Stores data in
Documents
Database Table
Parent –
Child Tables
MongoDB
Index Row Column Join View
Multi-Record
ACID
Transaction
RDBMS
Database Collection
Nested Sub-
Document or
Array
Index Document* Field
Embedding,
Linking, $lookup
View
Multi-Document
ACID
Transaction
* Proper document schema design yields more entity data per document than found in a relational database row
Document Model
MongoDB Ecosystem
Application server(s)
Client libraries
MongoDB Drivers
fully managed database as
a service
MongoDB Atlas
Visualization & integrations
MongoDB Compass
MongoDB Charts
MongoDB BI Connector
MongoDB Spark Connector
Backend As a Service
MongoDB Stitch
Self managed database
MongoDB Enterprise
MongoDB OpsManager
MongoDB Cloud Manager
What is MongoDB Atlas?
MongoDB Atlas is a fully managed, global cloud
database.
Stitch is a serverless platform that makes it easy to
build modern, cross-platform apps on top of MongoDB.
Focus Your Energy Where You Can Make a
Difference
App Backend Infrastructure
Core Database Functionality
Storage
Service integrations, data access control
Code that moves the business forward
Managing OS, Scale, Security, Backups, etc.
MongoDB
Atlas
Time
40%
40%
20%
Focus Your Energy Where You Can Make a
Difference
App Backend Infrastructure
Core Database Functionality
Storage
Service integrations, data access control
Code that moves the business forward
Managing OS, Scale, Security, Backups, etc.
MongoDB
Atlas
MongoDB
Stitch Fully managed
Elastic scale
Highly Available
Secure
Time
40%
40%
20%
Focus Your Energy Where You Can Make a
Difference
App Backend Infrastructure
Core Database Functionality
Storage
Service integrations, data access control
Code that moves the business forward
Managing OS, Scale, Security, Backups, etc.
MongoDB
Atlas
MongoDB
Stitch Fully managed
Elastic scale
Highly Available
Secure
Developers can focus here
Time
40%
40%
20%
What will you do with that 80% of time
now
Build New
Awesome Features
Reduce Technical
Debt
Faster Time to
Market
Sleep Peacefully 
Architecture
Browser (JavaScript)
Initialize App Authenticate User Get Comments
Add
Comments
Initialize App
Authenticate
User
Trigger
Query Anywhere
Function
Change
Streams
Find()
insertOne
()
AWS Simple
Email Service
Comments
Live Coding
Typing accuracy and mental faculty guaranteed to reduce by 37%!
Wrap it up
Don’t forget this!
MongoDB Atlas is the best way to get started with MongoDB.
MongoDB Stitch serverless platform makes it easy to build modern, cross-platform apps on top of MongoDB.
Start building your first MongoDB
app using Atlas & Stitch today!
@gamepop
Resources
Find a link to these slides on my Twitter page: @gamepop
Basic Blog Tutorial:
https://docs.mongodb.com/stitch/tutorials/build-blog/
How to setup AWS Simple Email Service with Stitch:
https://docs.mongodb.com/stitch/reference/partner-
services/amazon-service/
How to setup Triggers: https://docs.mongodb.com/stitch/triggers/
Some fun sessions @ .local
Seattle
How and When to use Multi-Document ACID
transactions by Aly Cabral @ 11:25 AM
Advanced Schema Design Patterns by Muthu @
2:05 PM
Evolving your DataAccess with MongoDB Stitch
by Drew @ 4:05 PM
Don’t forget this!
MongoDB Atlas is the best way to get started with MongoDB.
MongoDB Stitch serverless platform makes it easy to build modern, cross-platform apps on top of MongoDB.
Questions?
Thank You!
MongoDB.local Seattle 2019: Building Your First MongoDB App Using Atlas & Stitch

MongoDB.local Seattle 2019: Building Your First MongoDB App Using Atlas & Stitch

  • 2.
    Jumpstart! Building YourFirst MongoDB App Using Atlas & Stitch Prashant Gupta , Senior Solutions Architect, MongoDB
  • 5.
    Focus Your EnergyWhere You Can Make a Difference App Backend Infrastructure Core Database Functionality Storage Service integrations, data access control Code that moves the business forward Managing OS, Scale, Security, Backups, etc. Time 40% 40% 20%
  • 6.
    Prashant Gupta Senior SolutionsArchitect, MongoDB @gamepop
  • 7.
    Agenda What is MongoDB? Whatis Atlas? Build your very first app using MongoDB and Stitch in under 40 minutes
  • 8.
  • 9.
    What is MongoDB? MongoDBis a cross-platform and open-source document-oriented general purpose database.
  • 10.
    Tabular (Relational) DataModel Related data split across multiple records and tables Document Data Model Related data contained in a single, rich document { "_id" : ObjectId("5ad88534e3632e1a35a58d00"), "name" : { "first" : "John", "last" : "Doe" }, "address" : [ { "location" : "work", "address" : { "street" : "16 Hatfields", "city" : "London", "postal_code" : "SE1 8DJ"}, "geo" : { "type" : "Point", "coord" : [ 51.5065752,-0.109081]}}, + {...} ], "phone" : [ { "location" : "work", "number" : "+44-1234567890"}, + {...} ], "dob" : ISODate("1977-04-01T05:00:00Z"), "retirement_fund" : NumberDecimal("1292815.75") } MongoDB Stores data in Documents
  • 11.
    Database Table Parent – ChildTables MongoDB Index Row Column Join View Multi-Record ACID Transaction RDBMS Database Collection Nested Sub- Document or Array Index Document* Field Embedding, Linking, $lookup View Multi-Document ACID Transaction * Proper document schema design yields more entity data per document than found in a relational database row Document Model
  • 12.
    MongoDB Ecosystem Application server(s) Clientlibraries MongoDB Drivers fully managed database as a service MongoDB Atlas Visualization & integrations MongoDB Compass MongoDB Charts MongoDB BI Connector MongoDB Spark Connector Backend As a Service MongoDB Stitch Self managed database MongoDB Enterprise MongoDB OpsManager MongoDB Cloud Manager
  • 13.
  • 14.
    MongoDB Atlas isa fully managed, global cloud database.
  • 15.
    Stitch is aserverless platform that makes it easy to build modern, cross-platform apps on top of MongoDB.
  • 16.
    Focus Your EnergyWhere You Can Make a Difference App Backend Infrastructure Core Database Functionality Storage Service integrations, data access control Code that moves the business forward Managing OS, Scale, Security, Backups, etc. MongoDB Atlas Time 40% 40% 20%
  • 17.
    Focus Your EnergyWhere You Can Make a Difference App Backend Infrastructure Core Database Functionality Storage Service integrations, data access control Code that moves the business forward Managing OS, Scale, Security, Backups, etc. MongoDB Atlas MongoDB Stitch Fully managed Elastic scale Highly Available Secure Time 40% 40% 20%
  • 18.
    Focus Your EnergyWhere You Can Make a Difference App Backend Infrastructure Core Database Functionality Storage Service integrations, data access control Code that moves the business forward Managing OS, Scale, Security, Backups, etc. MongoDB Atlas MongoDB Stitch Fully managed Elastic scale Highly Available Secure Developers can focus here Time 40% 40% 20%
  • 19.
    What will youdo with that 80% of time now Build New Awesome Features Reduce Technical Debt Faster Time to Market Sleep Peacefully 
  • 20.
    Architecture Browser (JavaScript) Initialize AppAuthenticate User Get Comments Add Comments Initialize App Authenticate User Trigger Query Anywhere Function Change Streams Find() insertOne () AWS Simple Email Service Comments
  • 21.
    Live Coding Typing accuracyand mental faculty guaranteed to reduce by 37%!
  • 22.
  • 23.
    Don’t forget this! MongoDBAtlas is the best way to get started with MongoDB. MongoDB Stitch serverless platform makes it easy to build modern, cross-platform apps on top of MongoDB.
  • 24.
    Start building yourfirst MongoDB app using Atlas & Stitch today! @gamepop
  • 25.
    Resources Find a linkto these slides on my Twitter page: @gamepop Basic Blog Tutorial: https://docs.mongodb.com/stitch/tutorials/build-blog/ How to setup AWS Simple Email Service with Stitch: https://docs.mongodb.com/stitch/reference/partner- services/amazon-service/ How to setup Triggers: https://docs.mongodb.com/stitch/triggers/
  • 26.
    Some fun sessions@ .local Seattle How and When to use Multi-Document ACID transactions by Aly Cabral @ 11:25 AM Advanced Schema Design Patterns by Muthu @ 2:05 PM Evolving your DataAccess with MongoDB Stitch by Drew @ 4:05 PM
  • 27.
    Don’t forget this! MongoDBAtlas is the best way to get started with MongoDB. MongoDB Stitch serverless platform makes it easy to build modern, cross-platform apps on top of MongoDB. Questions?
  • 28.