I have a facebook style app, and I need to be able to send my users messages that get displayed on the page, like "Someone commented on your picture".
Currently the way I am doing this is having the user do a datastore request for an object that contains possible messages every single time they make a request. A task updates the object for the user when a message needs sent.
Is there a better way I can do this? I know I could probably find some speed up by using the memcache somehow, but is there any better way? Like writing directly into their session from the task somehow?