[BUG] lambda: event source mappings default BatchSize to 10 for every source, AWS uses 100 except SQS (LambdaService.java:1281)
Author: sam-fakhreddineCreated Sep 30, 2026Updated Sep 30, 2026
Labelsbuglambdasqs
What happens
CreateEventSourceMapping without a BatchSize stores 10 for every event source: toInt(request.get("BatchSize"), 10) in LambdaService.createEventSourceMapping. GetEventSourceMapping and ListEventSourceMappings then report 10, and pollers size their batches from it.
Expected
The botocore Lambda model documents a default per source type for BatchSize: Kinesis 100, DynamoDB Streams 100, SQS 10, Amazon MSK 100, self-managed Apache Kafka 100, Amazon MQ 100, DocumentDB 100. So only SQS mappings should default to 10.
Reproduce
Create a Kinesis or DynamoDB Streams mapping (or a self-managed Kafka one) without BatchSize, then call GetEventSourceMapping: it shows "BatchSize": 10 where AWS shows 100.
Source: floci-io/floci