首页 > 解决方案 > Is AWS S3 trigger is Sync or Async process?

问题描述

I'm writing file into aws s3 for every 10 sec, S3 is triggering aws lambda function.

Every write is calling lambda function if function takes more then 10 sec to process the file, let's say 1 min. In this case, S3 will be waiting for the process.

But, S3 is triggering function when file writes into s3.

Here i need s3 trigger has to wait for response. What setting i need do ?

EX:

2019-06=27 07:34:20 -> file_1.txt -> process time 8 sec

2019-06=27 07:34:30 -> file_2.txt -> process time 60 sec

2019-06=27 07:34:40 -> file_3.txt -> process time 8 sec

标签: amazon-web-servicesamazon-s3aws-lambda

解决方案


https://docs.aws.amazon.com/lambda/latest/dg/lambda-services.html

同步

异步

从这个 S3 是一个异步 lambda 调用。


推荐阅读