GenSpoxy v0.0.14-beta.2 Spoxy.Partitionable.Behaviour behaviour View Source

since GenServer based module, process its own mailbox messages in serial manner, it’s subject to have a long queuing time in case the queue becomes big.

In order to scale such modules, we introduce the GenSpoxy.Partitionable behaviour, it will be implemented by modules that require and suit a paritioning logic

Link to this section Summary

Link to this section Callbacks

Link to this callback calc_req_partition(key) View Source
calc_req_partition(key :: String.t()) :: term()
Link to this callback partition_server(key) View Source
partition_server(key :: term()) :: term()
Link to this callback total_partitions() View Source
total_partitions() :: Integer