Multi-user timer with Google App Engine -
we implementing multi-user timer google app engine. when timer ends need calculations , send results users. several users should able start , pause timer different browsers. use channels api communication. how trigger calculations @ specific time?
one idea have is, when timer starts, create push task eta
set timer finish time. when task runs, check timer state stored in memcache or datastore, , create task if state modified due pausing timer. if timer finished task launches calculations. there better approaches, since there no guarantee task run @ eta
?
you have repeating task (re-enqueing itself, delay specified in seconds) check timer state , perform calculations if appropriate or return if not.
Comments
Post a Comment