Invoke Lambda functions from S3 uploads at high scale

0

Customers who wants to upload files to S3, trigger Lambda functions, and write the file name in a database. This scenario can cause a 10,000 uploads per second.

There is no 100% guarantee that for every file uploaded, a Lambda function will be invoked.

What would be a good way to deal with the peaks and write the file names to a database?

Nir_Sh
질문됨 4년 전399회 조회
1개 답변
0
수락된 답변

Recently S3 changed their notification mechanism and it is now at least once delivery of events. If you want to make sure that all events are handled, send them to SQS and trigger a Lambda from the queue. in addition to notifications you can compare the S3 Inventory to what's in the database to catch missed events.

profile pictureAWS
전문가
Uri
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠