I'm working on an application which involves recording data, the easiest analogy is Strava recording a bicycle trip. Realm seems like the perfect choice for users recording their data and having it synchronized to a backend. The aspect I'm having trouble understanding is when I add the social community (i.e. people sharing live data to friends). I have plan for finding and adding friends, but if everyone's data lives on their own personal realm, what is the best way for others to see this provided the friendship status is correct? The data is fairly lightweight, equivalent to a GPS coordinate updated every 1-5 seconds. Realistically I'll have to restrict the truly live data sync to a certain number so power users don't get bogged down for having too many friends.
I have a few ideas, the following forum post helped a bit but I wondered if anyone experienced with realm could provide input.
As per the post above, every users data get's synced from their personal realm to a large realm on the backend. Then on the user-side, it could open the large realm with partial sync to show only friend data etc.
An alternative of this is rather than a large realm, using an external database and connecting each realm to it with particular queries to access to friend data (I think this is possible in the enterprise edition?)
Is it feasible for user-side to connect to the appropriate friends realm and get the required data via partial sync? I suppose the app could sequentially load each friend (to not have them all open at once)
Thanks! I appreciate any feedback so I can keep using this platform.