2 個答案
- 最新
- 最多得票
- 最多評論
0
Although I can't find any document stating that the batchSize will always be 1 I think it will be.
Nevertheless usually when I implemented these lambda's I used one of the following patterns:
- just create a loop over the records. just in case it changes in future...
- refuse events that have > 1 record count, generate an error -> cloudwatch logs -> alarm
已回答 2 年前
0
Only Event source mapping (SQS, Kinesis, MQ, DDB Streams) invocation allow for batching. All other invocation, synchronous (e.g., API Gateway) or asynchronous (e.g., S3, even though there is an internal queue), deliver the events to Lambda with a single event at a time.
If you want to handle S3 events in a batch you can use S3 -> SQS -> Lambda.
相關內容
- 已提問 1 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前