Skip to content
Advertisement

How do I know when an async aws lambda ends?

It will be easier to understand if you look at the image:

Flow diagram

I am coding using AWS Lambda in node.js.

JavaScript

I tried referring to the code above, but it failed.

A lambda invokes B lambda. And B lambda invokes many C lambdas asynchronously.

How do I know that B lambda ends with C lambdas?

I can’t do this so Lambda A doesn’t know if lambda B did its job properly.

Advertisement

Answer

The scenario you describe is ideal for AWS Step Functions:

Step Functions is a serverless orchestration service that lets you combine AWS Lambda functions and other AWS services to build business-critical applications. Through Step Functions’ graphical console, you see your application’s workflow as a series of event-driven steps.

AWS Step Functions

Advertisement