Sync Data with your Mobile Kotlin App The Easy Way!
summary
A Kotlin sample app uses MongoDB Atlas Device Sync (Realm SDK) to provide birectional real‑time sync with a cloud Atlas cluster, a local ACID object store, and automatic offline queuing so writes persist locally and push when online. The demo builds a simple task tracker, uses generated JSON schema and one‑click Kotlin model code, calls copyToRealm to persist objects, and shows automatic schema updates in dev mode plus conflict rules (operational transform, delete wins, last‑update‑wins, Lamport ordering) that resolve edits correctly.
AI-written summary · about
chapters (10)
- 0:00Introduction and motivation
- 4:46Introducing Atlas Device Sync
- 8:58Setting up MongoDB Atlas
- 11:26Demo of syncing tasks
- 16:04Code walkthrough for sync
- 19:35Syncing with existing data
- 22:01Frontend-driven schema updates
- 27:17Conflict resolution in sync
- 31:37Additional features overview
- 34:01Closing and resources
related talks
38mCloud Meets Edge: Embedding Data Processing & Synchronization in Mobile Apps
41mSync is the Future of Mobile Data
45mOffline should be the norm: building local-first apps with CRDTs & Kotlin Multiplatform
40mBoost App Reliability: Offline Storage Solutions with AWS Expertise
46mRethinking Syncing
47mThe future of Real-time/offline/data
23mCrafting Collaborative Apps with Realm
38mKMM story - from first feature to Mobile mono-repo at Sphere
