elsa v0.10.0 Elsa.Group.Consumer

Centralizes definition for common functions related to consumer interactions.

Link to this section Summary

Functions

Retrieves a process id of a consumer registered to the Elsa Registry and performs a consume-ack of the messages ready to be read off the topic.

Retrieve the process id of a consumer registered to the Elsa Registry and subscribes to it.

Link to this section Types

Link to this type

offset()
offset() :: integer() | String.t()

Link to this section Functions

Link to this function

ack(connection, topic, partition, offset)

Retrieves a process id of a consumer registered to the Elsa Registry and performs a consume-ack of the messages ready to be read off the topic.

Link to this function

subscribe(connection, topic, partition, opts)
subscribe(Elsa.connection(), Elsa.topic(), Elsa.partition(), term()) ::
  {:ok, pid()} | {:error, term()}

Retrieve the process id of a consumer registered to the Elsa Registry and subscribes to it.