Atlas Data Federation with MongoDB
📖 Scenario: You work for a company that stores customer data in multiple MongoDB collections across different clusters. You want to create a unified view of all customers using Atlas Data Federation, so you can query all data as if it were in one place.
🎯 Goal: Build a simple Atlas Data Federation query that combines customer data from two collections into one result set.
📋 What You'll Learn
Create two collections named
customers_us and customers_eu with sample customer documentsCreate a data federation virtual database that includes both collections
Write a query to find all customers from both collections
Filter customers with
age greater than 30💡 Why This Matters
🌍 Real World
Companies often store data in multiple databases or clusters. Atlas Data Federation lets you query all data together without moving it.
💼 Career
Understanding data federation helps in roles like data engineering and database administration where combining data from multiple sources is common.
Progress0 / 4 steps