I'll preface this by saying I'm fairly new to iOS development. Here's what I want to do. I am working on an app that will need basic social features. In particular, these three:
- Making connections to (or friending) other users: Users should be able to add friends, accept or decline friend requests, see a list of their friends, etc.
- Share items with other users or publicly: For simplicity, let's just call them recipes. Users can create recipes which could include text and photos. Then they can share them with their friends or publicly. Others can like or comment.
- Basic messaging between users.
I know that is a lot of functionality but it does seem like a pretty standard minimum set of functionality for a social app. I began building my app using Realm mobile database but now that I am starting to look at the backend, I'm concerned about building some pieces using Realm.
Let's consider an activity feed which shows recipes shared with you, most recently shared on top. It seems like I could do this two ways, both of which seem unwieldy.
A realm for each user which contains that users recips. In this case, I would need to sync all realms for all users who have shared a recipe with me. This seems like it won't work.
A realm which contains all the recipes and all the users. This seems too large to sync. How could I have all that data on one device? Is Realm smart enough to bring over only the data I need?
Obviously, I'm a newbie. I'm sorry if the question seems poorly informed. I'm a little lost and could use whatever guidance people could offer who have built apps with basic social features. I would also be willing to hire somebody to help teach me and build some of the basic components I'm looking for.
Thanks in advance!