Reader small image

You're reading from  Mastering MongoDB 7.0 - Fourth Edition

Product typeBook
Published inJan 2024
PublisherPackt
ISBN-139781835460474
Edition4th Edition
Concepts
Right arrow
Authors (7):
Marko Aleksendrić
Marko Aleksendrić
author image
Marko Aleksendrić

Marko Aleksendrić is an analyst, an ex-scientist, and a freelance self-taught web developer with over 20 years of experience. Marko has authored the book Modern Web Development with the FARM Stack, published by Packt Publishing. With a keen interest in backend and frontend development, he has been an avid MongoDB user for the last 15 years for various web and data analytics-related projects, with Python and JavaScript as his main tools.
Read more about Marko Aleksendrić

Arek Borucki
Arek Borucki
author image
Arek Borucki

Arek Borucki, a recognized MongoDB Champion and certified database administrator, has been working with MongoDB technology since 2016. As principal SRE database engineer, he works closely with technologies such as MongoDB, Elasticsearch, PostgreSQL, Kafka, Kubernetes, Terraform, AWS, and GCP. His extensive experience includes working with renowned companies such as Amadeus, Deutsche Bank, IBM, Nokia, and Beamery. Arek is also a Certified Kubernetes Administrator and developer, an active speaker at international conferences, and a co-author of questions for the MongoDB Associate DBA Exam.
Read more about Arek Borucki

Leandro Domingues
Leandro Domingues
author image
Leandro Domingues

Leandro Domingues is a MongoDB Community Champion and a Microsoft Data Platform MVP alumnus. Specializing in NoSQL databases, focusing on MongoDB, he has authored several articles and is also a speaker and organizer of events and conferences. In addition to teaching MongoDB, he was a professor at one of the largest universities in Brazil. Leandro is passionate about MongoDB and is a mentor and an inspiration to many developers and administrators. His efforts make MongoDB a more comprehensible tool for everyone.
Read more about Leandro Domingues

Malak Abu Hammad
Malak Abu Hammad
author image
Malak Abu Hammad

Malak Abu Hammad is a seasoned software engineering manager at Chain Reaction, with a decade of expertise in MongoDB. She has carved a niche for herself not only in MongoDB but also in essential web app technologies. Along with conducting various online and offline workshops, Malak is a MongoDB Champion and a founding member of the MongoDB Arabic Community. Her vision for MongoDB is a future with an emphasis on Arabic localization, aimed at bridging the gap between technology and regional dialects.
Read more about Malak Abu Hammad

Elie Hannouch
Elie Hannouch
author image
Elie Hannouch

Elie Hannouch is a senior software engineer and digital transformation expert. A driving force in the tech industry, he has a proven track record of delivering robust, scalable, and impactful solutions. As a start-up founder, Elie combines his extensive engineering background with strategic innovation to redefine how enterprises operate in today's digital age. Apart from being a MongoDB Champion, Elie leads the MongoDB, Google, and CNCF communities in Lebanon and works toward empowering aspiring tech professionals by demystifying complex concepts and inspiring a new generation of tech enthusiasts.
Read more about Elie Hannouch

Rajesh Nair
Rajesh Nair
author image
Rajesh Nair

Rajesh Nair is a software professional from Kerala, India, with over 12 years of experience working in various MNCs. He started his career as a database administrator for multiple RDBMS technologies, including Progress OpenEdge and MySQL. Rajesh also managed huge datasets for critical applications running on MongoDB as a MongoDB administrator for several years. He has worked on technologies such as MongoDB, AWS, Java, Kafka, MySQL, Progress OpenEdge, shell scripting, and Linux administration. Rajesh is currently based out of Amsterdam, Netherlands, working as a senior software engineer.
Read more about Rajesh Nair

Rachelle Palmer
Rachelle Palmer
author image
Rachelle Palmer

Rachelle Palmer is the Product Leader for Developer Database Experience and Developer Education at MongoDB, overseeing the driver client libraries, documentation, framework integrations, and MongoDB University. She has built sample applications for MongoDB in Java, PHP, Rust, Python, Node.js, and Ruby. Rachelle joined MongoDB in 2013 and was previously the director of the technical services engineering team, creating and managing the team that provided support and CloudOps to MongoDB Atlas.
Read more about Rachelle Palmer

View More author details
Right arrow

MongoDB Atlas: Powering the Future of Developer Data Platforms

MongoDB Atlas is more than just a database service. It's a comprehensive solution, carefully crafted for developers to simplify and enhance data management. This platform is tailored according to the needs of modern applications, which are often characterized by large data volumes, automation requirements, rapid scalability, and the need for adaptability amidst change.

MongoDB Atlas enables a user-friendly GUI for database maintenance, automated backups, and point-in-time data snapshots. It offers various features such as automated upscaling, monitoring, alerting, Vector Search, Full-text Search, Triggers and Functions, Device Sync, and performance optimization tools for diagnosing poorly constructed queries.

These features aim to consolidate various workloads into a single-developer data platform across the enterprise. Whether a start-up or a well-established enterprise, MongoDB Atlas caters to all cloud-based...

Understanding MongoDB Atlas as a database-as- a-service

MongoDB Atlas can manage a wide spectrum of data types across an organization—from real-time updates to unstructured data residing in data lakes. Its multi-cloud compatibility further extends its utility, offering a unified environment for a variety of data and application services. This integration empowers development teams to rapidly build with the performance, scalability, and capabilities demanded by contemporary applications.

The MongoDB Atlas developer data platform is built on the infrastructure of Amazon Web Services (AWS), Google Cloud Platform (GCP), and Azure to enable database scaling to over 95+ cloud regions. This provides a high degree of flexibility and control in data management. Users have the choice to either utilize MongoDB Atlas on a single cloud provider or take advantage of its multi-cloud capabilities for enhanced flexibility and resilience.

Its comprehensive platform for managing MongoDB...

Atlas developer data platform

Having explored MongoDB Atlas as a database service, let's now shift focus to its broader capabilities as a comprehensive data development platform. Over recent years, MongoDB has enriched the Atlas platform with numerous features, enhancing the traditional functionalities of the MongoDB database. These additions establish MongoDB Atlas as a robust data platform, offering vital tools for the development of modern applications, including full-text search, vector search, streams, and data federation. Let's delve deeper into these features.

Atlas Vector Search and its role in AI applications

In 2023, MongoDB introduced a public preview of its new product, Atlas Vector Search. Built on the MongoDB Atlas developer data platform, this innovative feature is designed to power intelligent applications with semantic search and generative AI capabilities over any type of data.

What does vector search entail?

Vector search is a technique that enables semantic search, which involves querying data based on its inherent meaning. This method utilizes machine learning models, often referred to as encoders, to convert various forms of data—such as text, audio, and images—into high-dimensional vectors. These vectors encapsulate the semantic essence of the data, which can then be sifted through to identify similar content based on the proximity of vectors in a high-dimensional space. Vectorized search can therefore effectively supplement traditional keyword-based search methods. It's also gaining significant attention...

Atlas Application Services

Beyond the robust search capabilities of Atlas Vector Search and Atlas Search, there's Atlas Application Services, enhancing the overall application development experience. This suite provides a range of tools to streamline and optimize your MongoDB applications.

What is Atlas Application Services?

MongoDB Atlas Application Services is a serverless application backend designed to streamline the development of cloud-based applications. It provides a suite of tools and services that allow developers to focus on building unique features rather than managing database and server infrastructure.

Atlas Application Services is designed to address common challenges faced by backend, web, and mobile app developers. It offers configurable functions, integrated data access, and security rules, allowing you to focus on crafting unique features instead of boilerplate backend code.

  • For backend developers, Atlas Application Services provides a platform...

Atlas Data API

The Atlas Data API is a managed service that allows users to interact securely with data stored in Atlas via standard HTTPS requests. This API simplifies interactions with the Atlas cluster, eliminating the need for a driver. It's important to note that the Data API is not a direct connection to your database. Instead, it functions as a fully managed middleware layer that mediates between your cluster and the clients sending requests.

It can be utilized in any platform that supports HTTPS, including web browsers, web servers, CI/CD pipelines, serverless and edge compute environments, mobile applications, and internet of things (IoT) devices. It eliminates the need to install any database drivers or libraries, allowing you to send standard HTTPS requests.

Here's an example of a standard HTTPS request using the Data API:

curl -s "https://data.mongodb-api.com/app/app-book/endpoint/data/v1/action/ 
  -X POST \
  -H "Content...

Atlas Data Lake

MongoDB Atlas Data Lake is an analytics-optimized object storage service designed for extracted data. It provides an analytic storage service optimized for both flat and nested data, ensuring low-latency query performance.

Essentially, the data lake capability enables you to run a single query that will route to either object storage or a database. This allows for more advantageous data storage use cases, including the ability to handle data stored in various formats outside of JSON and BSON, such as CSV, TSV, Parquet files, and the like.

Atlas Data Lake requires a paid tier cluster usage with backup enabled. It supports collection snapshots from Atlas clusters as a data source for extracted data. The service automatically ingests data from the snapshots, partitions it, and stores it in an analytics-optimized format.

Data storage and optimization

Atlas Data Lake stores data in Parquet files, an analytic-oriented format based on open source standards, with...

Atlas Data Federation

MongoDB Atlas Data Federation is a comprehensive data integration tool that manages operations on data from diverse sources. It is a distributed query engine that enables you to query, transform, and move data across various sources inside and outside of MongoDB Atlas. This feature provides a seamless way to work with data from different locations, reducing the complexity of data management.

Atlas Data Federation can now be deployed in Microsoft Azure as well as querying Microsoft Azure Blob Storage. Previously, Data Federation could be deployed only to infrastructure hosted in AWS. However, with the addition of Azure Blob Storage, Azure users can now query and analyze their data across multiple sources into a single, federated view.

Atlas Data Federation combines data from MongoDB Atlas clusters, Atlas Data Lake, and cloud storage into virtual databases and collections. The data remains in place and in its native format. You can get data insights quickly...

Atlas Stream Processing (preview)

In the realm of data processing and management, the ability to handle streaming data efficiently has become paramount. MongoDB Atlas Stream Processing is a transformative feature that allows you to build event-driven applications by continuously processing streams of data. This feature offers a unified developer experience for all data, whether in motion or at rest.

With the introduction of Atlas Stream Processing, MongoDB has taken a significant step forward in addressing the challenges associated with event-driven applications.

Operational mechanism

Atlas Stream Processing provides a seamless connection to critical data, whether it resides in MongoDB via change streams or in an event streaming platform such as Apache Kafka. It allows you to effortlessly connect to various platforms including Confluent Cloud, Amazon MSK, Redpanda, Azure Event Hubs, or a self-managed Kafka instance utilizing the Kafka wire protocol. By integrating with the...

Atlas SQL Interface

The Atlas SQL Interface allows communication with MongoDB using SQL. While SQL databases, with their structured schema, have been the traditional choice for applications requiring strict data consistency, NoSQL databases (of which MongoDB is one) have emerged as favorites in scenarios demanding flexibility and horizontal scalability. MongoDB has made a substantial move to close this divide between the two databases with the launch of the Atlas SQL Interface. NoSQL databases, such as MongoDB, provide flexibility and scalability that traditional SQL databases often can't compete with.

SQL continues to be the preferred language for data analysis because of its simplicity and widespread use. This has created a demand for tools that can convert between SQL and NoSQL data models, enabling analysts to apply their existing SQL expertise and tools with NoSQL databases. The Atlas SQL Interface addresses this need by providing a way to query and analyze Atlas data...

MongoDB Atlas Charts

MongoDB Atlas Charts is a contemporary data visualization tool that enables the effortless creation, sharing, and embedding of visualizations from MongoDB Atlas. It stands out as the only native data visualization tool specifically designed for MongoDB Atlas, offering a quick, simple, and powerful way to visualize data.

Whether operating a dedicated cluster or serverless instance or using Atlas Data Federation for robust insights from blended Atlas and S3 data, or archived data in the online archive, Atlas Charts caters to a wide range of data visualization use cases, such as the following:

  • Real-time BI: Atlas Charts facilitates the creation of dynamic visualizations in just a few clicks. All deployments from an Atlas project are available by default, dashboards can be configured to refresh automatically, and dashboards can be easily shared across a team. This allows for quick, easy, real-time business insights.
  • Direct interaction with JSON data...

Operational integrations: The Atlas Kubernetes Operator

When discussing operational integrations, a standout feature is the Atlas Kubernetes Operator. The Atlas Kubernetes Operator, built using CNCF's Operator Framework, is open source. It integrates with Operator Lifecycle Manager and Service Catalog, and supports certified Kubernetes distributions.

What is the Atlas Kubernetes Operator?

In MongoDB, the Atlas Kubernetes Operator is a service that integrates Atlas resources with Kubernetes clusters. This allows you to deploy and manage the lifecycle of cloud-native applications that require data services in a single control plane with secure enterprise platform integration.

The MongoDB Atlas Kubernetes Operator uses custom resource definitions (CRDs) to manage the Atlas configuration. CRDs are extensions of the Kubernetes API that allow the creation and configuration of custom resources as instances of the CRD.

These custom resources represent various MongoDB Atlas...

Atlas CLI

The MongoDB Atlas CLI is a powerful tool designed to interact with MongoDB Atlas database deployments and Atlas Search from the terminal. It allows you to perform complex database management tasks in seconds using short, intuitive commands.

How to use the Atlas CLI

Check the MongoDB documentation to select the installation method appropriate for your operating system: https://www.mongodb.com/docs/atlas/cli/stable.

Capabilities of the Atlas CLI

The Atlas CLI is designed to manage MongoDB Atlas from the command line. With just one command, a quick start is possible:

The atlas setup command should be run to configure the CLI for use with a MongoDB Atlas account. This command guides you through registration, login, setting up a default profile, creating your initial free tier cluster, and connecting to it using the MongoDB Shell.

The Atlas CLI also provides a wide range of commands for managing MongoDB Atlas deployments, including creating and deleting clusters...

Summary

MongoDB Atlas is a fully managed developer data platform offering performance, security, and flexibility, suitable for any organization looking to use MongoDB in a cloud environment.

It's a comprehensive data management platform designed for modern applications. It handles various data types and is multi-cloud compatible. In this chapter, you looked at how this platform integrates data and application services, enabling rapid application development. You were also introduced to new features including Atlas Vector Search and Atlas Stream Processing that help in enhancing information retrieval and data stream handling.

The next chapter will focus on the essential aspects of monitoring the health and performance of your system, along with strategies and tools for effective data backup and recovery.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Mastering MongoDB 7.0 - Fourth Edition
Published in: Jan 2024Publisher: PacktISBN-13: 9781835460474
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (7)

author image
Marko Aleksendrić

Marko Aleksendrić is an analyst, an ex-scientist, and a freelance self-taught web developer with over 20 years of experience. Marko has authored the book Modern Web Development with the FARM Stack, published by Packt Publishing. With a keen interest in backend and frontend development, he has been an avid MongoDB user for the last 15 years for various web and data analytics-related projects, with Python and JavaScript as his main tools.
Read more about Marko Aleksendrić

author image
Arek Borucki

Arek Borucki, a recognized MongoDB Champion and certified database administrator, has been working with MongoDB technology since 2016. As principal SRE database engineer, he works closely with technologies such as MongoDB, Elasticsearch, PostgreSQL, Kafka, Kubernetes, Terraform, AWS, and GCP. His extensive experience includes working with renowned companies such as Amadeus, Deutsche Bank, IBM, Nokia, and Beamery. Arek is also a Certified Kubernetes Administrator and developer, an active speaker at international conferences, and a co-author of questions for the MongoDB Associate DBA Exam.
Read more about Arek Borucki

author image
Leandro Domingues

Leandro Domingues is a MongoDB Community Champion and a Microsoft Data Platform MVP alumnus. Specializing in NoSQL databases, focusing on MongoDB, he has authored several articles and is also a speaker and organizer of events and conferences. In addition to teaching MongoDB, he was a professor at one of the largest universities in Brazil. Leandro is passionate about MongoDB and is a mentor and an inspiration to many developers and administrators. His efforts make MongoDB a more comprehensible tool for everyone.
Read more about Leandro Domingues

author image
Malak Abu Hammad

Malak Abu Hammad is a seasoned software engineering manager at Chain Reaction, with a decade of expertise in MongoDB. She has carved a niche for herself not only in MongoDB but also in essential web app technologies. Along with conducting various online and offline workshops, Malak is a MongoDB Champion and a founding member of the MongoDB Arabic Community. Her vision for MongoDB is a future with an emphasis on Arabic localization, aimed at bridging the gap between technology and regional dialects.
Read more about Malak Abu Hammad

author image
Elie Hannouch

Elie Hannouch is a senior software engineer and digital transformation expert. A driving force in the tech industry, he has a proven track record of delivering robust, scalable, and impactful solutions. As a start-up founder, Elie combines his extensive engineering background with strategic innovation to redefine how enterprises operate in today's digital age. Apart from being a MongoDB Champion, Elie leads the MongoDB, Google, and CNCF communities in Lebanon and works toward empowering aspiring tech professionals by demystifying complex concepts and inspiring a new generation of tech enthusiasts.
Read more about Elie Hannouch

author image
Rajesh Nair

Rajesh Nair is a software professional from Kerala, India, with over 12 years of experience working in various MNCs. He started his career as a database administrator for multiple RDBMS technologies, including Progress OpenEdge and MySQL. Rajesh also managed huge datasets for critical applications running on MongoDB as a MongoDB administrator for several years. He has worked on technologies such as MongoDB, AWS, Java, Kafka, MySQL, Progress OpenEdge, shell scripting, and Linux administration. Rajesh is currently based out of Amsterdam, Netherlands, working as a senior software engineer.
Read more about Rajesh Nair

author image
Rachelle Palmer

Rachelle Palmer is the Product Leader for Developer Database Experience and Developer Education at MongoDB, overseeing the driver client libraries, documentation, framework integrations, and MongoDB University. She has built sample applications for MongoDB in Java, PHP, Rust, Python, Node.js, and Ruby. Rachelle joined MongoDB in 2013 and was previously the director of the technical services engineering team, creating and managing the team that provided support and CloudOps to MongoDB Atlas.
Read more about Rachelle Palmer