Elsa.Partitioner behaviour (Elsa v1.0.0-rc.3) View Source

Behaviour for partitioning messages produced to Kafka.

Link to this section Summary

Types

Partition selected by the partitioning strategy.

The number of partitions for a topic.

Link to this section Types

Specs

partition() :: non_neg_integer()

Partition selected by the partitioning strategy.

Specs

partition_count() :: pos_integer()

The number of partitions for a topic.

Link to this section Callbacks

Link to this callback

partition(partition_count, key)

View Source

Specs

partition(partition_count(), key :: term()) :: partition()