This module defines the brod_group_member behaviour.
Required callback functions: get_committed_offsets/2, assignments_received/4, assignments_revoked/1.
Optional callback functions: assign_partitions/3, user_data/1.
See also: callback.
3. Receive messages from subscribed partitions (delivered by the partition
workers (the pollers) implemented in brod_consumer);
4. Unsubscribe from all previously subscribed partitions when, is called. For group members who commit offsets to kafka, they should:
1. Call @see brod_group_coordinator:ack/4. to acknowledge sucessfull
consumption of the messages. Group coordinator will commit the
acknowledged offsets every configured interval.
2. Call @see brod_group_coordinator:commit_offsets/1,2.
to force an immediate offset commit if necessary.
Implement brod_group_member behaviour callbacks to allow a process act like a group member without having to deal with kafka group protocol details. A typical work flow:
1. Spawn a group coordinator by callingGenerated by EDoc