Nicolas VERHELST
Nicolas VERHELST

Reputation: 508

Offline Atlas cluster to use Realm Sync without internet?

My understanding of Realm Sync

I understood it is possible to use Realm Sync on a (sometimes) offline application/client. This Realm Sync would manage the connection to the database along with conflict resolution. But, as I understood, Realm Sync would need to connect to an Atlas Cluster (a server).

I also understood here that offline is totally ok if Realm Sync is not used.

The question

Is it possible to have an offline instance of that Atlas Cluster (i.e. not in the cloud)?

Why this question?

I need to build some database synchronisation for a project that will NEVER have access to internet.

Upvotes: 1

Views: 436

Answers (1)

baronfac
baronfac

Reputation: 373

If I understand you correctly, you want to know, wether it is possible to write data offline on a mobile device and the sync will happen later, once the device is online again, am I right?

Realm Sync is a possible way to use then, yes. Once the database was initialized once on the mobile (starting the app first for example), you can read and write everything offline. If there is a connection available, everything will get synced to the MongoDB Atlas Cluster. The whole conflict-resulution will happen in the cloud and you don't need to worry about it again.

Upvotes: 1

Related Questions