I'm here to get some advice about the best way of building my data model (mongodb) in my application.
Let's say I will have those entities :
User: A User with all the usual attributes and I need each User to have a list of followers and following. Each User will also have a list of "Post" that he find interesting.
Post: A post will have a content, a creation date, an author (user), a list of User that likes the post (I'd like to be able to retrieve user informations from a post), a list of comments (comment)
Comment: A comment will have an author(User), a content, and has to be linked to a post.
I'm thinking this application to handle lots of content and users, that's why i'm really concerned about this data model, and I'd like to be able to build it the best way in term of maintainability and perfromance.
I really can't decide by my own in which case I need to use the embbeded document capabilities or to reproduce a relationnal like data model.
How would you build this data model ?