Elsa.Partitioner behaviour (Elsa v1.0.0-rc.3) View Source
Behaviour for partitioning messages produced to Kafka.
Link to this section Summary
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
Specs
partition(partition_count(), key :: term()) :: partition()