cabol / shards

Partitioned ETS tables for Erlang and Elixir

Home Page:https://hexdocs.pm/shards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make distribution function (pick none/shard) configurable.

cabol opened this issue · comments

Currently shards_dist uses Jumping Consistent Hashing, but it would be good to make this function to calculate/pick the node totally configurable.

I don't know if make sense do the same for shards_local, because locally, we always have the same amount of shards and the function is pretty dump and simple (erlang:phash2/2).