I have an iOS application written in Swift using Realm as a database working locally on my computer.
Right now, when I make reads and writes from Realm, I believe it is to and from a local file on my computer. Obviously this will not work in deployment, because the Realm file needs to be the same for every user, and every user will have the ability to change the Realm, so it seems that the Realm must be on a server.
How can I make it so that when users perform reads and writes to Realm, it maps to the Realm file on a server. What type of server should I use? I currently have an Amazon S3 account, should I just store the Realm file in a bucket and download and rewrite the Realm file anytime someone makes a change (though that seems highly inefficient)?
To ask this in a simpler way, what is the standard way to store user data in iOS applications on a server?