Week 4.3 - MongoDB Deep Dive, Assignments
Week 4.3 - MongoDB Deep Dive, Assignments
Express
Browser Database
Express
Express
What is a database
It is a place where data is stored persistently
Express
Servers autoscale
Browser Database
Express
Express
What is a database
It is a place where data is stored persistently
Browser Database
Express
Express
What is a database
It is a place where data is stored persistently
Database is persistent
Browser Database
Express
Express
What is a database
Examples of data stored in databases -
For Linkedin
1. User data
2. Users posts
3. Users connection relationships
4. Messages
What is a database
Examples of data stored in databases -
Get me my feed
Express
Give me all posts for this user
Database
Express
What is a database
Good question to have at this point
Database
What is a database
Good question to have at this point
1. Databases were are created using protocols that browsers don’t understand
2. Databases don’t have granual access as a rst class citizen. Very hard to do user speci c access in them
3. There are some databases ( rebase) that let you get rid of the http server and try their best to provide granola access
De ning schema
fi
What is a database
Create
What is a database
Read
What is a database
Update
What is a database
Delete
What is a database
Cluster
Cluster
Database
Users Admins
Courses
What is a database
What would this mean for a simple course app
Cluster
Database
Users
Id | Email | Password | Name | Age User Admins
1 | [email protected] | 123123 | harkirat | 20
2 | [email protected] | kirat123 | harkirat | 22
Purchase
Courses
s
What is a database
What would this mean for a simple course app
Cluster
Database
Admins
Id | Email | Password | Name User Admins
1 | [email protected] | 123123 | Raman
2 | [email protected] | 123123 | Kirat
Purchase
Courses
s
What is a database
Cluster
Database
Courses
id | Title | Description | Price User Admins
1. | Full stack | Learn Full stack | 5000
2. | Web3 | Learn Web3. | 3999
Purchase
Courses
s
What is a database
What would this mean for a simple course app
Cluster
Database
Purchases
user_id | course_id | timestamp | payment_ref User Admins
1. |1 | 02/12/2024. | pay_123123
2. |1 | 02/12/2024. | pay_331213
Purchase
Courses
s
What is a database
Lets try to target the assignments from this week
What is a database
Something extra