Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MongoDB Atlas: Best Practices

MongoDB Atlas: Best Practices

Explore MongoDB Atlas best practices in this presentation. Covering deployment preparation, scaling strategies, data availability, security, and business intelligence, it covers all the best practices required for a deployment on MongoDB Atlas. Key topics include schema design, sharding, monitoring, and security measures, with a special focus on Indian use cases. The session is designed to be both informative and approachable, making it ideal for professionals seeking practical knowledge in MongoDB Atlas.

Simar Preet Singh

January 18, 2024
Tweet

More Decks by Simar Preet Singh

Other Decks in Programming

Transcript

  1. ~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
  2. MongoDB MongoDB is - Leading, open-source, NoSQL database - Known

    for: flexibility, scalability, and developer friendly nature
  3. 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)
  4. 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.
  5. 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.
  6. Easy Setup MongoDB has a great user experience for developers

    who can install MongoDB and start writing code immediately.
  7. 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/
  8. MongoDB Atlas MongoDB Atlas is - cloud-based, fully managed database

    service - automated backups, robust security measures, and built-in replication for high availability.
  9. 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
  10. 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.
  11. Why MongoDB Atlas? 1. Multi-cloud options 2. Database Scaling 3.

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

    Realtime database metrics 4. Performance optimisation tools 5. Developer Resources
  13. 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
  14. 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
  15. 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.
  16. Things to be kept in check: - Schema Design -

    Dynamic Schema & JSON Schema Validation - Indexes & Transactions Preparing for MongoDB Deployment
  17. 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
  18. 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
  19. 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
  20. 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
  21. Keep your MongoDB environment healthy - Monitoring & Capacity Planning:

    Stay ahead of potential issues. - Disaster Recovery: Your safety net. Managing MongoDB
  22. Security is paramount - IP Whitelisting - User Management -

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

    Access Token Management MongoDB Security
  24. Q/A