

Then, connect the two with a synchronization mechanism. Locally and in the cloud: One option that addresses connectivity issues and ensures real-time data sharing capabilities is to use a cloud database and a local database. However, this again would require internet access to reach so faces the same limitations around connectivity.Ĥ. A database that can be self-hosted and work with mobile is therefore a consideration. Server: You may prefer to self-host your data, using your own servers and data center.

#ANDROID IDATABASE DRIVER#
However, the driver used to communicate with Atlas requires network access at all times, making the experience less than optimal for mobile use cases where devices are constantly disconnecting and reconnecting.ģ. For example, MongoDB Atlas, MongoDB’s multi-cloud application data platform, combines a flexible document data model and unified query interface, to provide a first-class developer experience that can power almost any class of application while meeting the most demanding requirements for resilience, scale, and data privacy. This means that mobile developers need to save their app data to the cloud or a self-hosted server.Ī cloud database has several advantages. Cloud: Many mobile applications require data sharing across users, devices, and a centralized back end - a capability not supported by local-only storage solutions. With data stored locally on a mobile device, apps continue to be usable, even when offline, leading to a much better user experience.Ģ. With their portability, connections to the network can be inconsistent on mobile devices.

Local storage: Having the data stored locally and available offline is an important feature in mobile applications. There are some factors in how a database can be hosted and how it works that are worth considering:ġ.
