View Source Elsa (Elsa.fi v2.0.1)
Provides public api to Elsa. Top-level short-cuts to sub-module functions for performing basic interactions with Kafka including listing, creating, deleting, and validating topics. Also provides a function for one-off produce_sync of message(s) to a topic.
Link to this section Summary
Functions
Define a default client name for establishing persistent connections to the Kafka cluster by producers and consumers. Useful for optimizing interactions by passing the identifier of a standing connection instead of instantiating a new one at each interaction, but when only a single connection is required, aleviating the need for the caller to differentiate and pass around a name.
Link to this section Types
@type connection() :: atom()
named connection, must be an atom
endpoints to connect to kafka brokers
@type partition() :: non_neg_integer()
@type portnum() :: pos_integer()
@type topic() :: String.t()
Link to this section Functions
See Elsa.Topic.create/3
.
@spec default_client() :: atom()
Define a default client name for establishing persistent connections to the Kafka cluster by producers and consumers. Useful for optimizing interactions by passing the identifier of a standing connection instead of instantiating a new one at each interaction, but when only a single connection is required, aleviating the need for the caller to differentiate and pass around a name.
See Elsa.Topic.delete/2
.
See Elsa.Fetch.fetch/3
.
See Elsa.Topic.list/1
.
See Elsa.Topic.exists?/2
.