Is it good to use Sharded Counter value as Entity ID to keep GAE Long ID short
问题 What is the viability of using a Long value generated by the GAE Sharded Counter code. In terms of having a unique Long id across datacenters? Why do I need to use the counter value as ID? GAE generates very long Long values as entity id, which in my app I need to have short ID's like the one generated by the Sharded counter at first. Question: Would the sharded counter at some point will generate the same value for a different request such that ID's might collide? 回答1: It is not viable since