2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
You don't need to use eventFiltering, you can achive that using Lambda BatchWindow
. This will invoke your function when the payload size reaches 6MB, the Batch Window reaches its maximum value, or the Batch Size reaches its maximum value. So its important to ensure your BatchSize
is large enough to let it wait for the window to trigger.
0
Unfortunately, there is no way to do that. You will need to invoke your function for every event and check if you actually need to do something or not, based on some state that you will save somewhere.
관련 콘텐츠
- 질문됨 14일 전
- AWS 공식업데이트됨 3년 전
Thank you for the suggestion. One case that comes to my mind is, if for some connection problem or just cumulative latency, the amount of messages changes to complete that batch. For example, if I had a perfect timeseries that sends data exactly every 10 seconds, I could set a batch size of 30 and calculate on that. But if for some reason we skip one message or delay messages in a cumulative way. Eventually the completion of the batch would be very delayed from the real time stream.