I’m currently updating my iOS-App with the Realm Cloud and so far the speed and simplicity is awesome! For the backend I’m using Google App Engine running Node.js.
How can I guarantee atomic transactions with the Realm Object Server? For example I would like to check from my client if a user with a unique username already exists. If not I would like to add one to the database.
Do I have to call my backend, check from there for an existing user with the specific username and insert a user if the name not exists? Is the backend in this case copying the complete database to local storage or is it using the Object Server directly? Is it possible to do this from iOS-Client? What ist the best practice for this?
(This is only an example. Another use case would be managing In-App-Purchases)
I think this question is really naive but even after hours of investigating the Docs and Stack Overflow I couldn’t find an answer. I would really appreciate a small hint!
Thank you and best regards