Can I use Realm and DeviceSync in Flex mode without connecting to Atlas for read operations?

My App mostly uses local reads, and every once in a while will save data that is synced with Atlas DeviceSync, and more often will received updates from other user devices, but almost never two devices will be on at the same time. All works great for my desktop .Net project with one caveat. Everytime I get Realm Instance with Flex config to read and object, the Realm creates a connection to the Atlas service. Is there a way to avoid it?

You can pause and resume the sync session using this API: https://www.mongodb.com/docs/realm/sdk/dotnet/sync/sync-session/

Let me know if that is not quite what you are looking for though.

Best,
Tyler

3 Likes

Thanks a lot, that was it!

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.