I was developing a web app based on google app engine, which consists of various users (user entities essentially) and also framing groups of users (i.e, you can create groups and post content).
In the groups I want that when anyone posts some content, text/image/file or anything, I want to send notifications in real time to all the users of that group.
I had an idea to embed a notification list in each of the user entities, and whenever somebody posts I'll iterate through the users of that group and append the notification for a new post in each of the member's notification list.
And I'd keep checking in time-sessions of around 5 seconds if there's been any change in the state of my notification list and if there is I'd notify the user (I know it's a lay man idea, but it's all I got for now).
I wanted to know will it work? 'cause when I read on the internet there were several places mentioning the use of channel API to sockets and what-not (I am just a CS sophomore without any prior networking experience so I did not understand much of it, as a matter-of-fact).
Any help would be appreciated about whether my method is correct or what are the caveats or if there are any better approaches or code samples from where I can deduce how to adapt things to suit my situation.