Flexible Sync on sharded cluster

Hi, I saw here that says " Enabling Flexible Sync in Your App Services Application requires a non-sharded MongoDB Atlas cluster running MongoDB 5.0 or greater".

Mongodb Atlas supports a single node with max size of 4TB, we’re planning to have much more data than 4TB as we currently have high MAUs, how can we support such use case with Realm Sync?

Hi, can you tell me more about your use case? We can enable you to run sync on a sharded cluster, but it is more likely than not that if you are trying to sync 4TB of data then sync might not be able to handle that load. Generally, our customers that have that much data either:

  1. Use a multi-tenant approach (they have customers and each customer is its own cluster / app)
  2. Use a app-per-region approach
  3. Are only syncing on a subset of their actual data (in this case 4TB)

Happy to chat more about the specifics about what you are trying to build with sync,
Tyler

Thanks for the info. We’re currently a offline productivity app that includes note taking and scribble, but we’re trying to add collaboration support to it, therefore it’s almost certain that the total data size will exceed 4TB based on our current calculation, and this is exclusive of the realm ops history data size.

Each user should only receive a subset of the actual data though, at most a few hundreds MBs based on our current data. However, as we’re building collaboration support where one user needs to share notes with other users, so it doesn’t sound like the multi-tenant or app-per-region approach could work, since realm data cannot sync across different apps.

I saw in this video during MongoDB World 2022 that support for sharded cluster is on the roadmap [Flexible Sync: The Future of Mobile to Cloud Synchronization (MongoDB World 2022) - YouTube](I saw in this video during MongoDB World 2022 that support for sharded cluster is on the roadmap Flexible Sync: The Future of Mobile to Cloud Synchronization (MongoDB World 2022) - YouTube (at 29:15)) (at 29:15), is there more info on the timeline?

@lahaOoo I’m in that video! :smiley:

Yes we are doing some foundational work now and then plan to tackle sharding support later this year.