Customizable consumer group ID in Lambda
When setting up Kafka as an event source, you can specify a
consumer group
Kafka distributes messages across all consumers in a consumer group. If you specify a consumer group ID that has other active consumers, Lambda receives only a portion of the messages from the Kafka topic. If you want Lambda to handle all messages in the topic, turn off any other consumers in that consumer group.
Additionally, if you specify a consumer group ID, and Kafka finds a valid existing consumer group with the same
ID, Lambda ignores the StartingPosition for your event source mapping.
Instead, Lambda begins processing records according to the committed offset of the consumer group. If you specify
a consumer group ID, and Kafka cannot find an existing consumer group, then Lambda configures your event source
with the specified StartingPosition
.
The consumer group ID that you specify must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value.