AWS Compute·
Introducing queue consumption mode for Apache Kafka in AWS Lambda
TL;DR
Kafka’s traditional consumer model limits parallel processing to the number of partitions, letting slow records hold up other work. AWS Lambda’s new queue consumption mode uses Kafka Share Groups on compatible Kafka 4.2+ clusters so multiple consumers can process records from the same partition concurrently. This lets independent tasks scale beyond partition limits without a separate queue system, but gives up ordering guarantees and requires functions to handle duplicate deliveries safely.
Relevant links
- Announcementsaws.amazon.com
- AWS Lambdaaws.amazon.com
- Intermediate (200)aws.amazon.com
- AWS Lambda event source mappings (ESMs)docs.aws.amazon.com
- Kafka Share Groups (KIP-932)cwiki.apache.org
- provisioned modedocs.aws.amazon.com
- AWS Lambda Developer Guidedocs.aws.amazon.com
- Introducing provisioned mode for Kafka event source mappings with AWS Lambdaaws.amazon.com
- on-failure destinationdocs.aws.amazon.com
- ESM loggingdocs.aws.amazon.com
- How do I make my Lambda function idempotentrepost.aws
- share.auto.offset.resetkafka.apache.org