KafkaBatcher.Behaviours.TempStorage behaviour (kafka_batcher v1.0.0)

KafkaBatcher.Behaviours.TempStorage behaviour is used to implement events saving logic in case when Kafka is not available.

Summary

Callbacks

Check if the storage is empty

Save batch to retry

Types

Link to this type

topic_name()

@type topic_name() :: String.t()

Callbacks

Link to this callback

empty?(topic_name)

@callback empty?(topic_name()) :: boolean()

Check if the storage is empty

@callback save_batch(KafkaBatcher.TempStorage.Batch.t()) :: :ok

Save batch to retry