Conversation

Replying to
There are fancy approaches but generic hash-based load balancing works fine. Create a hash table equal in size to number of cores. Each bucket has a hash table with a separate lock. Inner hash tables reuse the hashing work for the outer one by shifting out bits that were used.
1