Kaffe.Subscriber (Kaffe v1.28.0)
View SourceConsume messages from a single partition of a single Kafka topic.
Assignments are received from a group consumer member, Kaffe.GroupMember.
Messages are delegated to Kaffe.Worker. The worker is expected to cast back
a response, at which time the stored offset will be acked back to Kafka.
The options (ops) to subscribe/7 may include the beginning offset
using :begin_offset.
The subscriber reads the following options out of the configuration:
max_bytes- The maximum number of message bytes to receive in a batchmin_bytes- The minimum number of message bytes to receive in a batchmax_wait_time- Maximum number of milliseconds broker will wait for:min_bytesof messages to be collectedoffset_reset_policy- The nativeauto.offset.resetoption, either:reset_to_earliestor:reset_to_latest.
See: https://github.com/klarna/brucke/blob/master/src/brucke_member.erl Also: https://github.com/klarna/brod/blob/master/src/brod_consumer.erl