Slide 1

Slide 1 text

MongoDB Atlas: Best Practices Jan 20, 2024 Simar Preet Singh @programmersingh

Slide 2

Slide 2 text

~whoami 1. Software Engineer, Redaptive Inc. 2. Community Organiser, Google Developer Groups Jalandhar 3. 5+ years of experience in Full Stack - Angular, Reactjs, Ionic, Nodejs, MongoDB, Firebase, Supabase, OpenAI etc 4. Love contributing to Developer Community

Slide 3

Slide 3 text

Agenda To learn about MongoDB, MongoDB Atlas and it’s best practices.

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

MongoDB

Slide 6

Slide 6 text

MongoDB MongoDB is - Leading, open-source, NoSQL database

Slide 7

Slide 7 text

MongoDB MongoDB is - Leading, open-source, NoSQL database - Known for: flexibility, scalability, and developer friendly nature

Slide 8

Slide 8 text

MongoDB MongoDB is - Leading, open-source, NoSQL database - Known for: flexibility, scalability, and developer friendly nature - Document-oriented: stores data in BSON format (which extends JSON)

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Why MongoDB?

Slide 12

Slide 12 text

Why MongoDB Document Model

Slide 13

Slide 13 text

Why MongoDB Document Model Deployment Options

Slide 14

Slide 14 text

Why MongoDB Document Model Easy Setup Deployment Options

Slide 15

Slide 15 text

Why MongoDB Document Model Fully Scalable Easy Setup Deployment Options

Slide 16

Slide 16 text

Why MongoDB Document Model Community Support Fully Scalable Easy Setup Deployment Options

Slide 17

Slide 17 text

Document Model The document data model is a powerful way to store and retrieve data in any modern programming language, allowing developers to move quickly.

Slide 18

Slide 18 text

Deployment Options MongoDB is available in any major public cloud (such as AWS, Azure, and Google Cloud) through MongoDB Atlas, in large data centers through the Enterprise Advanced edition, or free through the open-source Community edition.

Slide 19

Slide 19 text

Easy Setup MongoDB has a great user experience for developers who can install MongoDB and start writing code immediately.

Slide 20

Slide 20 text

Fully Scalable MongoDB’s horizontal, scale-out architecture can support huge volumes of both data and traffic.

Slide 21

Slide 21 text

Community Support MongoDB has developed a large and mature platform ecosystem. It has a worldwide community of developers and consultants, making it easy to get help. It also has an enterprise-grade support offering. https://www.mongodb.com/community/

Slide 22

Slide 22 text

Simplifying Database Management with MongoDB Atlas

Slide 23

Slide 23 text

MongoDB Atlas MongoDB Atlas is - cloud-based, fully managed database service

Slide 24

Slide 24 text

MongoDB Atlas MongoDB Atlas is - cloud-based, fully managed database service - automated backups, robust security measures, and built-in replication for high availability.

Slide 25

Slide 25 text

MongoDB Atlas MongoDB Atlas is - cloud-based, fully managed database service - automated backups, robust security measures, and built-in replication for high availability. - designed for ease of use, allowing you to deploy, monitor, and scale MongoDB with just a few clicks

Slide 26

Slide 26 text

MongoDB Atlas MongoDB Atlas is - cloud-based, fully managed database service - automated backups, robust security measures, and built-in replication for high availability. - designed for ease of use, allowing you to deploy, monitor, and scale MongoDB with just a few clicks - suitable for everything from small projects to large enterprise applications, providing the flexibility to adjust resources as needed.

Slide 27

Slide 27 text

Why MongoDB Atlas?

Slide 28

Slide 28 text

Why MongoDB Atlas? 1. Multi-cloud options

Slide 29

Slide 29 text

Why MongoDB Atlas? 1. Multi-cloud options 2. Database Scaling

Slide 30

Slide 30 text

Why MongoDB Atlas? 1. Multi-cloud options 2. Database Scaling 3. Realtime database metrics

Slide 31

Slide 31 text

Why MongoDB Atlas? 1. Multi-cloud options 2. Database Scaling 3. Realtime database metrics 4. Performance optimisation tools

Slide 32

Slide 32 text

Why MongoDB Atlas? 1. Multi-cloud options 2. Database Scaling 3. Realtime database metrics 4. Performance optimisation tools 5. Developer Resources

Slide 33

Slide 33 text

Why MongoDB Atlas? 1. Multi-cloud options 2. Database Scaling 3. Realtime database metrics 4. Performance optimisation tools 5. Developer Resources 6. Built in security control

Slide 34

Slide 34 text

Why MongoDB Atlas? 1. Multi-cloud options 2. Database Scaling 3. Realtime database metrics 4. Performance optimisation tools 5. Developer Resources 6. Built in security control 7. Enterprise grade features

Slide 35

Slide 35 text

Why MongoDB Atlas? 1. Multi-cloud options 2. Database Scaling 3. Realtime database metrics 4. Performance optimisation tools 5. Developer Resources 6. Built in security control 7. Enterprise grade features 8. Additional features like, Replica set, Backups, App Services, No-Code REST API, Vector Search and many more.

Slide 36

Slide 36 text

Aasaan Hai… Aasaan hai…

Slide 37

Slide 37 text

Best Practices for MongoDB Atlas?

Slide 38

Slide 38 text

Things to be kept in check: - Schema Design - Dynamic Schema & JSON Schema Validation - Indexes & Transactions Preparing for MongoDB Deployment

Slide 39

Slide 39 text

Things to be kept in check: - Analyze typical queries and design your schema accordingly - Document Size: Large documents (>16MB)? Consider GridFS for storing large files Application Access Patterns & Document Size

Slide 40

Slide 40 text

Data isn't static. It's born, it lives, and sometimes, it needs to retire - TTL (Time to Live): Automatically manage document expiry. - Capped Collections: Limit the growth of collections. Data Lifecycle Management

Slide 41

Slide 41 text

The key to speedy queries lies in smart indexing - Learn how to avoid common indexing pitfalls: not creating indexes at all or creating more than required indexes. Indexing and Query Optimization

Slide 42

Slide 42 text

Growing big? Let's scale! - Vertical Scaling - Horizontal Scaling: Sharding Scaling a MongoDB Atlas Cluster

Slide 43

Slide 43 text

Go Global with MongoDB Atlas Ideal for businesses targeting international markets. Global Clusters

Slide 44

Slide 44 text

Your data should always be there when you need it - Data Redundancy: Never lose your data. - Write Guarantees & Read Preferences: Balance between data consistency and availability. Continuous Availability & Data Consistency

Slide 45

Slide 45 text

Keep your MongoDB environment healthy - Monitoring & Capacity Planning: Stay ahead of potential issues. - Disaster Recovery: Your safety net. Managing MongoDB

Slide 46

Slide 46 text

Security is paramount - IP Whitelisting - User Management - Access Token Management MongoDB Security

Slide 47

Slide 47 text

When you directly use your access tokens and API keys in front-end code.

Slide 48

Slide 48 text

Security is paramount - IP Whitelisting - User Management - Access Token Management MongoDB Security

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

Q/A

Slide 51

Slide 51 text

Letʼs Connect

Slide 52

Slide 52 text

Thank you for your time.