Kaffe v1.14.1 Kaffe.GroupMemberSupervisor View Source
The top-level supervisor for consumer group members.
Consuming messages from a Kafka topic as part of a consumer group is broken out into the following distinct components:
- GroupMember
- Subscriber
- Worker
- WorkerManager
- WorkerSupervisor
The GroupMember implements the :brod_group_member behaviour and is responsible for receiving assignments from Kafka and managing how subscribers and workers are configured and allocated. All message processing is then delegated to the created Subscribers and Workers.
Subscribers subscribe to Kafka topics and are responsble for receiving lists of messages, passing messages to workers for processing, and committing offsets after processing.
Workers wrap application message handlers and notify subscribers about whether or not commit offsets back to Kafka.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Callback invoked to start the supervisor and during hot code upgrades.
Link to this section Functions
child_spec(arg) View Source
Returns a specification to start this module under a supervisor.
See Supervisor
.
init(atom) View Source
Callback invoked to start the supervisor and during hot code upgrades.
Developers typically invoke Supervisor.init/2
at the end of their
init callback to return the proper supervision flags.
Callback implementation for Supervisor.init/1
.