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.
관련 콘텐츠
- AWS 공식업데이트됨 3년 전
- AWS 공식업데이트됨 일 년 전