Challenge: Generate matching shard id-answer

added by DotNetKicks
4/21/2020 1:57:05 PM

174 Views

I posed a potential problem for a job interview. Given the following function, generate another key that has the same shard: In other words, give "users/71" and a prefix of "orders/654", generate a key that would be placed on the same shard as "users/71". The answer in this case can be: "orders/654-vaueaa".


0 comments