Data Federation Using MongoDB Database With Atlas Cluster

Data Federation is MongoDB’s solution for querying data stored in low-cost S3 buckets, Atlas clusters, HTTP stores, and Atlas Data Lake datasets using the MongoDB Query Language. This allows applications to store data in the appropriate storage solution for their use case.

How it works…

Data Federation creates virtual databases and collections based on data from MongoDB Atlas clusters, Atlas Data Lake, and cloud storage.

NOTE: IF YOU WANT TO COMBINE TWO DIFFERENT COLLECTIONS IN THE SAME DATABASE. I RECOMMEND THAT YOU USE THE $LOOKUP AGGREGATION QUERY.

Prerequisites :

Before you start, you must have the following:

i: There should be at least two M10 clusters in MongoDB Atlas.

ii: The Project owner’s role should be to create the Federated database instance.

Procedure : 

In order to navigate to the Data Federation page follow the below steps:

i: Log in to MongoDB Atlas cloud.

ii: Go to ‘Data Federation’ under the ‘SERVICES’ tab from the navigation.

iii: Click the ‘Create Federation Database’ button to create a new Federated Database Instance. 

iv: Click ‘Add Data Source’ to add Atlas clusters.

v: Click ‘MongoDB Atlas Cluster’ to choose the cluster and select the databases or collections.

vi: Drag the datasets in Virtual Collection from the Cluster Store and click the ‘Save’ button.

vii: Federated Database Instance has been created.

viii: Click ‘Connect’ to make connections.

ix: Choose your preference to connect the virtual database.

x: For the connection, I’m using MongoDB Compass and Copying the connection string.

NOTE: YOU NEED TO ADD THE PASSWORD OF USER IN CONNECTION STRING.

xi: After connection, the MongoDB Atlas Data Federation overview page shows the information of the Virtual Database.

Nothing is impossible, Keep Learning……

Latest

SENTRY integration in your React Native App for Error/Crash tracking

Sentry captures data by using an SDK within your...

Recall the concepts of useCallback.

useCallback hook is one of the best hooks offered...

Value of Comments in the code!!

During my journey of Software Development, I am always...

YOLO:Bullet Paced Algorithm

http://sh017.hostgator.tempwebhost.net/media/33949d0e61af4b50f374c534713f56b3 According to world health organization, more than 1.35 million...

Featured

Developing Enterprise Application in Node.js – CJS Vs ESM

Node.js is a popular runtime environment for building server-side...

Integrating your web react applications with their React Native(android and IOS) apps using QR code

Integrating a web application with Android and iOS apps...

YOLO: Bullet Paced Algorithm – popular choice for object detection in autonomous vehicles 

According to world health organization, more than 1.35 million...

Importance of Test Scalar Tool

TestScalar is quick to access, convenient to execute, easy to track. Our popular web-based test planning software lets you focus on what matters: meeting...

From Requirements to Reporting: How to Use a Test Case Management Tool to Ace Your Software Testing

The Software Testing Life Cycle (STLC) is a process that describes the stages of testing software. It includes planning, design, execution, and reporting of...

YOLO:Bullet Paced Algorithm

http://sh017.hostgator.tempwebhost.net/media/33949d0e61af4b50f374c534713f56b3 According to world health organization, more than 1.35 million people die every year because of vehicle accidents . Vehicle safety features started with passive safety...

LEAVE A REPLY

Please enter your comment!
Please enter your name here