2 questions:
1) What do they do with the Pinterest-generated ID? Do they store it with each row in addition to the local ID?
2) Why randomly select a shard? Shouldn't you do this based on DB size across all boxes, or at least based on physical space left across all boxes?