elsa v0.10.0 Elsa.Group.ConsumerSupervisor

Supervisor that starts and manages brod consumer processes, one per topic/partition by way of the Elsa Wrapper GenServer.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

On startup, retrieves the number of partitions for the given topic and constructs a child spec definition for an Elsa Wrapper process to start and link to a brod consumer for each one.

Start the consumer supervisor process and link it to the current process. Registers itself to the Elsa Registry.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

On startup, retrieves the number of partitions for the given topic and constructs a child spec definition for an Elsa Wrapper process to start and link to a brod consumer for each one.

Link to this function

start_link(args)
start_link(keyword()) :: GenServer.on_start()

Start the consumer supervisor process and link it to the current process. Registers itself to the Elsa Registry.