The document discusses building a first app using MongoDB Atlas and Stitch. It introduces MongoDB as a document-oriented database and MongoDB Atlas as a fully managed cloud database. MongoDB Stitch is described as a serverless platform that makes it easy to build apps on top of MongoDB. The presentation explains how Atlas and Stitch allow developers to focus 80% of their time on building features rather than managing infrastructure. It then demonstrates a live coding example of building a basic blog app with user authentication and comments using Atlas and Stitch.
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
MongoDB.local Seattle 2019: Building Your First MongoDB App Using Atlas & Stitch
1.
2. Jumpstart! Building Your First
MongoDB App Using Atlas & Stitch
Prashant Gupta , Senior Solutions Architect, MongoDB
3.
4.
5. 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%
9. What is MongoDB?
MongoDB is a cross-platform and open-source document-oriented
general purpose database.
10. 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
11. 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
12. 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
15. Stitch is a serverless platform that makes it easy to
build modern, cross-platform apps on top of MongoDB.
16. 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%
17. 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%
18. 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%
19. What will you do with that 80% of time
now
Build New
Awesome Features
Reduce Technical
Debt
Faster Time to
Market
Sleep Peacefully
20. 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
23. 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.
25. 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/
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!
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?