I have a user entity and another entity which is a child of the user 
entity. I store the child entities by allocating the IDs 
(https://godoc.org/cloud.google.com/go/datastore#Client.AllocateIDs). I 
have assumed the IDs of the child entities are unique (across users) and 
relying on this for integration with a 3rd party service that require 
idempotency keys to prevent duplicate requests. Is this assumption correct?

I already have the working code but yesterday I had a strange scenario of 
the 16 digit IDs colliding across two local datastore instances (what are 
the chances) and the 3rd party service promptly flagged this. Of course, 
Ids not being unique against two different instances of datastores is fine, 
but want to ensure I can rely on the uniqueness for production deployment.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3f57dc0b-d238-4f8f-8cc4-39b99fb5720c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... dir Ls

Reply via email to