I have more then 1000 users online at peak and I'm using datastore for
this.
Unfortunately, updating last online time costs quite a lot of CPU
time. And
I'm updating only once per 5 minutes (on each poll I write last
online time to memcache and put it into datastore via cron).

On Jun 23, 6:45 am, Ryan <ryeterr...@gmail.com> wrote:
> Each of my users is polling the server every few seconds. I need to
> keep a list of the users that have polled in the last 30 seconds handy
> for a task I have queued to run every few seconds.
>
> The obvious way I see to do it is to update a datastore entry every
> time the user polls, and query the entries that have a timestamp
> within the last N seconds within my task queue. I can't imagine this
> scaling well.
>
> Any recommendations?
>
> Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to