You mentioned using gaeutilities, and I thought I'd point out that you could also use the session utility from that project for your session ids as well. I'm not sure the overhead of the urlfetchers for AQS (as well as the monetary costs) would be better than using Cache. Cache will keep your data in memcache, and should it be expunged, will automatically handle retrieving it from the datastore. Session will not only automatically handle your session id, but will also rotate the session id to provide some protection from session hijacking. It also includes IP and User Agent validation. Depending on how heavy your messaging system is, you may need to play with the session_token_ttl in order to make sure you don't lose the session.
On Nov 7, 9:46 am, slmnhq <[EMAIL PROTECTED]> wrote: > Thanks Calvin. I read the docs for AQS and it looks worthwhile, not to > mention cheap too. > Thanks for mentioning this. > > On Nov 6, 12:24 am, "Calvin Spealman" <[EMAIL PROTECTED]> wrote: > > > Let's not be tied to any one thing. Consider something like amazons queue > > service? > > > On Nov 5, 2008 12:44 PM, "slmnhq" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I'm starting to build an interactive application where an event (eg: > > mouse click) in one user's browser needs to trigger another event (eg: > > show a message) in another user's browser. Sometimes data (eg: chat > > messages) will be passed from one session to another. > > > The way I was going to implement this was was to have the event > > producer make a json-rpc call to the GAE application. The application > > would store the message in a "queue" which is just a list of messages > > in memcache. The event consumer will periodically poll (via json-rpc) > > to get messages intended for it. There will be one message queue for > > each session. > > > Each browser session will have a session id - I have not figured out > > how and when to generate this id. > > > This is a somewhat naive approach and I was curious if there are > > issues that I might run into. > > > Thanks, > > Salman > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
