Thanks,
Diwaker
--
http://floatingsun.net/
No. When I spoke to the AppEngine developers about this they were quite
adament that there is no reliable clock synchronization.
- Brian
what is your reasonable margin for time differences? The only workaround
I see is using an external source to get time from (first time, and
every X requests
or X seconds, maybe), and generate a timedelta in each host (app
instance) serving
your app, in order to adjust host-provided time information with that
timedelta any time
you need to obtain current time. Will this work for you? Of course,
you still having some
time issues, since synchronizing from an external source has some drawbacks, but
it depends on your exact needs...
Jose
why will you store in a cache something that is changing all the time?
this is an oxymoron.
>> Since requests might be served on different machines and the
>> time is significant for my application, it would be perfect
>> if the clocks on all appengine servers are guaranteed to be
>> consisntent/synchronized (within some small margin of
>> course). Is this a reasonable assumption?
>
> No. When I spoke to the AppEngine developers about this they were quite
> adament that there is no reliable clock synchronization.
>
but why will you need this? isn't all time-related data stored as UTC
times? making things created by date findable, I'm sure they where
talking about to-the-second sync, but I'm certain they should be
within the same minute, since the best way to keep clocks running vs
UTC is some kind of sync with an UTC server.
> - Brian
>
>
> >
>
No. I spoke in person directly with the developers (at one of the
hack-a-thons) and they would not provide *any* reassurances about how close
the clocks are together. The developer I talked to (sorry, can't remember
his name right now) said it wouldn't be a good idea to rely on them being
synced close enough together to do anything useful. In fact, he made it seem
like he didn't think it was a big deal for the clock to be totally wrong
sometimes (e.g. wrong day).
I don't have any inside info here--attend one of the AppEngine events and
ask them for yourselves, or submit a ticket.
Regards,
Brian
--
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://ironfroggy-code.blogspot.com/