Shard allocation and routing keys