Realm or realm-web for Rest Api

Hello,

I have a mobile app which uses realm sync and I wish I could modify data through web app and rest api made with node js.

I have 2 solutions to update the data with Node JS : Realm and Realm-Web
I have tried both and both work but with Realm-Web data is not updated in real time in the mobile app (which uses sync). Is it normal ? So should I be using Realm? The problem is, with Realm, I’m going to have to store all the .realm files from all the partitions where my Node JS app is hosted.

So which one is better ? :slight_smile:

Thanks for your help ! :smiley:

Short answer is no. Documents updated via Realm Web should trigger Sync to a mobile device if the document updated is matching the partition of the synced Realm. Perhaps the sync logs, viewable via the MongoDB Realm UI can reveal the cause.

If you don’t need the data access rules that MongoDB Realm provide when updating data from your Node.js rest API, you could consider using the MongoDB Node.js Driver and connecting directly to your Atlas cluster.

1 Like

Thanks a lot, it works perfectly :slight_smile:

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.