E--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.
format = '%a, %d %b %Y %H:%M:%S %Z'correction = 0try:orig_timestamp = time.mktime(time.gmtime(time.time()))result = urllib2.urlopen(url)date_string = result.headers['Date']recv_timestamp = time.mktime(time.gmtime(time.time()))dest_timestamp = time.mktime(time.strptime(date_string, format))correction = int((recv_timestamp - dest_timestamp)/2%180.)Reason for the %180 in there is the games are on a 3 minute boundary.
Hey guys,
Thanks a lot for the interesting ideas about handling this issue. So for in my application, I need to be very sensitive (mils) about the arrival time of requests to resolve conflicts in data assignment.
Basically, I'm worried about two requests coming in around the same time, hitting two different instances, then having to resolve which request was "first".
I've thought about creating a memcache-based semaphore based around the actual data ID that will be assigned, but I thought I'd see if there was a slicker way that anyone had used.
Thanks,
E
--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/PPbVax3k1s0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
Basically, I'm worried about two requests coming in around the same time, hitting two different instances, then having to resolve which request was "first".
Everything is managed for you. That means ANYTHING that relies on the 'machine' can fail randomly (and does!!!!)