3 ms·
The #4 is interesting, and it makes me wonder, if the last action of a function is to call another function, will it wait for the termination? Would this be fai
by Zababa 5y ago
The #4 is interesting, and it makes me wonder, if the last action of a function is to call another function, will it wait for the termination? Would this be fair to call this a tail-call, and say that the lambda runtime may or may not implement TCO for its functions?
- civ0 5y agoIt is possible to use the InvocationType "Event" [1] when invoking a Lambda. Then the API returns immediately, but you will never know if there was an error during the execution of the Lambda. The author would problaly argue to use Step Functions in this case, but using "Event" can also work fine. [1] https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda.html#Lambda.Client.invoke https://boto3.amazonaws.com/v1/documentation/api/latest/refe...
- andrew_ 5y agoLambda + SNS + CloudWatch (with alarms) is a successful pattern for invoking other lambas very async and still being notified of problems. Swap in SQS if you're in need of message retry.