3 ms·
A finite field would ALMOST work here. However, you're making the assumption that the user ids using your application are random. If you have an A/B test runnin
by withinboredom 4y ago
A finite field would ALMOST work here. However, you're making the assumption that the user ids using your application are random. If you have an A/B test running using that same mapping, you'll end up with a server hotter than the other if one arm of the experiment is widely successful.
- afiori 4y agoIn practice I would have added a salt, but I did not consider that each independent sharding needs to have its own salt.