Palmer / Boudjnah / Allen | The Official MongoDB Guide | E-Book | www2.sack.de
E-Book

E-Book, Englisch, 374 Seiten

Palmer / Boudjnah / Allen The Official MongoDB Guide

Resilience, scalability, security and performance
1. Auflage 2025
ISBN: 978-1-83702-196-3
Verlag: De Gruyter
Format: EPUB
Kopierschutz: 0 - No protection

Resilience, scalability, security and performance

E-Book, Englisch, 374 Seiten

ISBN: 978-1-83702-196-3
Verlag: De Gruyter
Format: EPUB
Kopierschutz: 0 - No protection



Delivering secure, scalable, and high-performance applications is never easy, especially when systems must handle growth, protect sensitive data, and perform reliably under pressure. The Official MongoDB Guide addresses these challenges with guidance from MongoDB's top subject matter experts, so you learn proven best practices directly from those who know the technology inside out.
This book takes you from core concepts and architecture through to advanced techniques for data modeling, indexing, and query optimization, supported by real-world patterns that improve performance and resilience. It offers practical coverage of developer tooling, IDE integrations, and AI-assisted workflows that will help you work faster and more effectively.
Security-focused chapters walk you through authentication, authorization, encryption, and compliance, while chapters dedicated to MongoDB Atlas showcase its robust security features and demonstrate how to deploy, scale, and leverage platform-native capabilities such as Atlas Search and Atlas Vector Search.
By the end of this book, you'll be able to design, build, and manage MongoDB applications with the confidence that comes from learning directly from the experts shaping the technology.
*Email sign-up and proof of purchase required

Palmer / Boudjnah / Allen The Official MongoDB Guide jetzt bestellen!

Weitere Infos & Material


1


Introduction to MongoDB


MongoDB is the world’s most popular NoSQL document database. Rather than using traditional relational tables, it stores data in a flexible, JSON-like format. Developers value it for its ease of scaling, strong security features, and reliable performance. With tools such as AI-enhanced search, sharding, and encryption, MongoDB offers a comprehensive platform for handling diverse data needs.

MongoDB 8.0 is the fastest and highest-performing version of MongoDB yet, performing around 32% faster than the previous version of MongoDB (Source: https://www.mongodb.com/company/blog/mongodb-8-0-improving-performance-avoiding-regressions). In addition to performance gains, MongoDB 8.0 delivers various improvements in aggregation, security, sharding, replication, and more, such as the following:

  • Sharding enhancements distribute data across shards up to 50 times faster and at up to 50% lower starting cost, lowering the infrastructure cost of getting started by up to $5,000 (USD) per year
  • Improved support for a wide range of search and AI applications at higher scale and lower cost, using quantized vectors (compressed representations of full-fidelity vectors) that require up to 96% less memory and are faster to retrieve while preserving accuracy
  • Expanded support for MongoDB’s Queryable Encryption, a groundbreaking innovation developed by the MongoDB Cryptography Research Group, to also support range queries

This book provides a comprehensive overview of what MongoDB, particularly version 8.0, can offer for your development needs. While we strive to be comprehensive and current, MongoDB is constantly adding new features. For the most detailed and up-to-date information, check out the MongoDB documentation at https://mongodb.com/docs.

In this chapter, we’re going to cover the following topics:

  • Why MongoDB?
  • Who uses MongoDB?
  • MongoDB architecture
  • What’s new in MongoDB 8.0?

Why MongoDB?


MongoDB is the preferred developer data platform for several reasons:

  • Flexibility: MongoDB lets you work with data without locking you into rigid schemas. This makes it easier to adapt your application as your data changes, or when handling formats that benefit from a flexible data store, such as unstructured or semi-structured content.
  • Scalability and performance: MongoDB is highly scalable and performant, allowing it to support both large-scale applications and smaller individual projects.
  • Security: MongoDB offers various security methods from user authentication and authorization to data and network encryption, including 8.0 support for OIDC authentication and authorization, and range queries in Queryable Encryption.
  • Query language: MongoDB offers a powerful query language that you can use to access your data, simplifying common operations such as and . It also offers indexing capabilities for increased query efficiency.
  • Developer-friendly data format: MongoDB stores data in a document format that resembles the structure of objects in many widely used programming languages, which helps simplify data handling and speeds up the development process.
  • Quick start: MongoDB’s simplicity and user-friendly setup make it easy to start using.

Plainly, MongoDB is simple to use. You can interact with your deployment in various ways, such as through programming language drivers, methods in the MongoDB Shell, and database commands. MongoDB provides a simple and streamlined interface for creating, updating, and interacting with data. For example, consider a Python developer attempting to insert a document by using the Python driver:

Easy! You don’t need to create an ID for the document, because MongoDB automatically creates one for you. In this case, all the developer needs to define are the document’s name, age, and email details.

Now, suppose the developer wants to retrieve this document by using a query. You can query for equality (for example, searching for documents in which the name is ). You can also query for inequality. In the following example, we are constructing a query to look for documents whose age is less than or equal to .

This example shows how you can use a MongoDB query operator such as to filter a query. MongoDB returns a document that is represented as a Python dictionary, where each field is a key-value pair in the dictionary. See the following example:

As you can see, the field has been inserted by MongoDB and is represented as an data type. The field is a unique and fast-to-generate identifier for each document. It is used as a document’s primary identifier.

MongoDB has a suite of drivers in various programming languages that act as a translation layer between the client and server. By using these drivers, you can interact with the data with your native programming language. You can also interact with your data by using the MongoDB Shell, database commands, and other tools offered by MongoDB.

The mission of MongoDB is to be a powerful database for developers, and its features are developed with programming language communities and framework integrations in mind. This will become more apparent in subsequent chapters, where you’ll learn about CRUD operations, sharding, replication, MongoDB Atlas, and more, all through the lens of a developer.

Who uses MongoDB?


MongoDB is used by many different industries, and its use cases span all kinds of situations and types of data. Users range from small businesses and start-ups, and even student projects, to some of the largest banks, automakers, and government agencies in the world.

MongoDB offers three different environments for you to create a database and store your data, each of which supports different developer needs:

  • MongoDB Atlas: Atlas is MongoDB’s cloud database service. It simplifies deploying and managing your databases, removing the user’s responsibility to maintain hardware and keep up with software patches. You can provision your database through the Atlas UI and easily scale as necessary. When you use Atlas, you have access to additional features such as embedded full-text search via Atlas Search, vector-based search through Atlas Vector Search, and Atlas Stream Processing, which allows you to process streams of complex data. Atlas is used by those who want to focus on developing data models instead of spending resources provisioning and managing their database.
  • MongoDB Enterprise Advanced (EA): MongoDB EA is the commercial edition of MongoDB. It includes additional capabilities such as an in-memory storage engine for high throughput and low latency, advanced security features such as Kerberos access controls, and encryption for data at rest. EA is ideal for organizations that require self-managed deployments on-premises, in private clouds, or in hybrid environments. The EA subscription, through which you get MongoDB EA, includes 24/7/365 support and tools such as MongoDB Ops Manager to help simplify deployment.
  • MongoDB Community: MongoDB Community is the free-to-use version of MongoDB. It includes support for basic operations such as queries, indexing, and aggregation. Because it is free and source-available, MongoDB Community is often used by small businesses and...



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.