目录1. 实现原理2. 解决数据倾斜的问题什么是数据倾斜?解决3. 代码实现3.1 ConsistentHash3.2 Hash3.3 Utils3.4 main1. 实现原理
Seems like this might be easy, but from reading other SO answers there are a number of ways for it to possibly work: