1 Answers
1
Instead of getting Kafka events the way you are proposing, have you looked at using a Kafka event trigger for lambda. Lambda will process messages as they arrive on the topic. You can specify a batch size which by default is 100 but can go up to 10000.
If you are using self-managed Kafka, take a look here - https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html
If you are using Amazon MSK, take a look here - https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
Relevant questions
java.nio.channels.UnresolvedAddressException when trying to create a topic in Amazon MSK
asked 7 months agoKafka Lambda Trigger (EventSourceMapping) - Credentials in secret not refreshed
Accepted Answerasked 5 months agoLambda concurrency for Self managed Kafka event source
asked 4 months agoSet group.id for Kafka event source for lambda?
asked a month agoAWS MSK kafka-authorizer.log
asked 23 days agoIoT Events: Publish IoT Topic action with dynamic topic name
asked 3 months agoLambda Scheduler to pull Data from Kafka Topic
asked a month agoUnable to create Kafka topic while deploying MSK on EC2 instance
asked 2 months agoSupport Kafka 3.0.1 to fix KAFKA-13636?
Accepted Answerasked 3 months agoBackup Kafka topics to S3
Accepted Answerasked 3 years ago