Stream Data to Atlas
On this page
If you have a mobile or client application that produces a large volume of data you'd like to stream to MongoDB Atlas, you can sync data unidirectionally using Device Sync. We call the feature that enables this unidirectional sync Data Ingest.
You can use Data Ingest to stream data from the client application to a Device Sync-enabled Atlas App Services App.
You might want to sync data unidirectionally in IoT applications, such as a weather sensor sending data to the cloud. Data Ingest is also useful for writing other types of immutable data where you do not require conflict resolution, such as creating invoices from a retail app or logging application events.
Data Ingest is optimized to provide performance improvements for heavy client-side insert-only workloads.
Sync Data Unidirectionally from a Client Application
To use Data Ingest, stream data to Atlas using insert-only asymmetric objects in a synced database.
Atlas Device Sync completely manages the lifecycle of this data. The SDK maintains it on the device until Data Ingest synchronization is complete. Then, the SDK removes the data from the device.
You cannot read, query, or delete an asymmetric object from a database. Asymmetric objects are incompatible with standard, bi-directional Device Sync or a non-synced database.
Connect and Authenticate with an App Services App
To stream data from the client to your backend App, you must connect to Atlas and authenticate a user.
Open a Synced Database
After you have an authenticated user, open a synced database.
Unlike bi-directional Device Sync, Data Ingest does not use a Sync subscription.