Can I initiate a long-running AWMS Lambda process asynchronously through the Amazon API Gateway?

I need to run AWS Lambda's many years of work (a few minutes), which will write its output to S3. It will be written in Java (actually Kotlin, but that doesn't matter).

I am learning the Amazon API Gateway as the interface between this and other AWMS Lambda jobs and the iOS mobile app that will talk to it.

Is it possible to call such lengthy Lambda processes asynchronously, either directly from the API gateway or from another lambda function?

+4
source share
2 answers

, API, API. Java AWSLambdaClient.invoke() InvocationType Event.

Lambda : Lambda- 300 . , Lambda , EC2, .

+5

API Gateway , . CLI SDK.

, .

aws apigateway put-integration \
    --rest-api-id <value> \
    --resource-id <value> \
    --http-method POST \
    --type AWS \
    --integration-http-method POST \
    --uri arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:123456789012:function:Hello_World/invocations?Qualifier=$LATEST \
    --credentials arn:aws:iam::123456789012:role/lambda \
    --request-parameters integration.request.header.X-Amz-Invocation-Type='Event'
+1

All Articles