Do I Understand Mongodb Realm Correctly?

There are three components:

  • Realm Database: Local Storage & Persistence
  • Realm Sync: Sync Realm Databases between clients and the Mongo DB Atlas
  • Mongo DB Atlas: A Cloud Database.

You can use each separately or together. So you can

  • Just store data locally with Realm Database and not sync it
  • Just store data on Mongo DB Atlas without using realm sync, using standard queries to access the data.
  • Use realm sync to create a synced realm that partitions your mongo db atlas database into a local realm and syncs data between the database and all clients who use it.

Is this all correct? (Thank you)

6

3 Answers

below are some notes for your questions. I'm just getting setup with MongoDB and Realm, myself.


A - Tools

Realm Database: Local Storage & Persistence

Correct - Client (on-device / local) storage

Realm Sync: Sync Realm Databases between clients and the Mongo DB Atlas

Somewhat confusingly, there's 2 different implementations of Realm Sync:

  1. Realm Sync - Syncs between clients with Realm (no MongoDB implementation necessary). This uses Realm-run database which costs $30/month
  2. MongoDB Realm with Sync - Syncs between Realm clients and MongoDB + Atlas backend which has a 'free forever' sandbox tier.

Mongo DB Atlas: A Cloud Database.

Correct - A database cluster + UI that is used in most tutorials to setup data models & database configuration.


Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.