Book Image

Mastering MongoDB 7.0 - Fourth Edition

By : Marko Aleksendrić, Arek Borucki, Leandro Domingues, Malak Abu Hammad, Elie Hannouch, Rajesh Nair, Rachelle Palmer
5 (2)
Book Image

Mastering MongoDB 7.0 - Fourth Edition

5 (2)
By: Marko Aleksendrić, Arek Borucki, Leandro Domingues, Malak Abu Hammad, Elie Hannouch, Rajesh Nair, Rachelle Palmer

Overview of this book

Mastering MongoDB 7.0 explores the latest version of MongoDB, an exceptional NoSQL database solution that aligns with the needs of modern web applications. This book starts with an informative overview of MongoDB’s architecture and developer tools, guiding you through the process of connecting to databases seamlessly. This MongoDB book explores advanced queries in detail, including aggregation pipelines and multi-document ACID transactions. It delves into the capabilities of the MongoDB Atlas developer data platform and the latest features, such as Atlas Vector Search, and their role in AI applications, enabling developers to build applications with the scalability and performance that today’s organizations need. It also covers the creation of resilient search functionality using MongoDB Atlas Search. Mastering MongoDB 7.0’s deep coverage of advanced techniques encompasses everything from role-based access control (RBAC) to user management, auditing practices, and encryption across data, network, and storage layers. By the end of this book, you’ll have developed the skills necessary to create efficient, secure, and high-performing applications using MongoDB. You’ll have the confidence to undertake complex queries, integrate robust applications, and ensure data security to overcome modern data challenges.
Table of Contents (20 chapters)
4
Chapter 4: Connecting to MongoDB

What does this book cover?

Chapter 1, Introduction to MongoDB, provides a quick introduction to MongoDB, the world's most versatile developer data platform, through the lens of the creators. This chapter will build your curiosity around exploring MongoDB and all its new features.

Chapter 2, The MongoDB Architecture, shows how to increase reliability and availability for your applications by implementing various methods in MongoDB, using replication and sharding. It also covers the new sharded cluster features introduced in MongoDB 7.0.

Chapter 3, Developer Tools, explores different MongoDB developer tools and shows how to use them to increase your productivity.

Chapter 4, Connecting to MongoDB, showcases the multi-language facets of MongoDB, providing a walkthrough of the direct driver methods, ODM libraries, and MongoDB integration across Ruby, PHP, Python, and Node.js.

Chapter 5, CRUD Operations and Basic Queries, demonstrates CRUD operations and basic queries in action. It provides hands-on examples of using the MongoDB Shell for database administration operations.

Chapter 6, Schema Design and Data Modeling, covers MongoDB schema design principles and techniques for effective data representation—which are essential for optimizing performance and scalability.

Chapter 7, Advanced Querying in MongoDB, offers a more profound exploration of MongoDB's capabilities, including the aggregation framework, indexing techniques, and optimization.

Chapter 8, Aggregation, delves into the aggregation framework and explores numerous stages and expression operators suitable for the most diverse problems.

Chapter 9, Multi-Document ACID Transactions, shows how MongoDB handles multi-document ACID transactions and what significance this concept has in sectors with strict requirements, such as finance, fintech, and mission-critical applications.

Chapter 10, Index Optimization, discusses and shows how MongoDB supports a plethora of indexes—from single-field to compound indexes, from geospatial to hashed and partial, as well as some recently introduced indexing types.

Chapter 11, MongoDB Atlas: Powering the Future of Developer Data Platforms, provides an in-depth walk-through of MongoDB Atlas—the most advanced cloud database service on the market.

Chapter 12, Monitoring and Backup in MongoDB, focuses on the essential aspects of monitoring the health and performance of the system, along with strategies and tools for effective data backup and recovery.

Chapter 13, Introduction to Atlas Search, shares insights on the capabilities integrated into MongoDB Atlas. It shows how to use sophisticated search functionalities for your data.

Chapter 14, Integrating Applications with MongoDB, delves into the various methods of integrating applications with MongoDB—both the native and cloud versions of MongoDB Atlas.

Chapter 15, Security, discusses the critical role of security in MongoDB, delving into robust authentication and authorization methods such as SCRAM, x.509, LDAP, and Kerberos.

Chapter 16, Auditing, provides an in-depth look at the features, benefits, and challenges of auditing in MongoDB, with an understanding of and practical guidelines for its effective implementation.

Chapter 17, Encryption, summarizes the different types of encryption and shows the practical implementation of each type in your database.