A Messaging is a system of sending messages to users. Sender can be another user of a system, in case of some sort of notifications.
Also messaging will take into account the followers model. When User A posts a question, a system generates a 'new question added by User A" and a link to question. Then the messageID of this message is added (pushed or added as first message) to array of per-user messages object. A script them periodially checks for new messages in that array and then gets array of new message ids and then selects these messages from MESSAGES collection using the $in query.
Still have to figure out how to splice out ONLY the new messages. I think Mongo can do some querying of nested objects using maybe the map/reduce or some other method of searching inside each nested object.
Using messaging system user can send message to another user. All sort of notifications that are currently emailed to user can also be set as notification messages.
User can just post a "status update" just like Twitter update - just post anything and it will become a message and will be seen by followers.
A Messaging is a system of sending messages to users. Sender can be another user of a system, in case of some sort of notifications. Also messaging will take into account the followers model. When User A posts a question, a system generates a 'new question added by User A" and a link to question. Then the messageID of this message is added (pushed or added as first message) to array of per-user messages object. A script them periodially checks for new messages in that array and then gets array of new message ids and then selects these messages from MESSAGES collection using the $in query.
Still have to figure out how to splice out ONLY the new messages. I think Mongo can do some querying of nested objects using maybe the map/reduce or some other method of searching inside each nested object.
Using messaging system user can send message to another user. All sort of notifications that are currently emailed to user can also be set as notification messages.
User can just post a "status update" just like Twitter update - just post anything and it will become a message and will be seen by followers.