Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

290
Views
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.

exports.handler = async (event) => {

const payload = 'hello from lambda 1';

const params = {
    FunctionName: 'lambda2',
    InvocationType: 'Event',
    Payload: JSON.stringify(payload),
};

const LambdaPromise = (params) => lambda.invoke(params).promise();

const responseFromLambda2 = await LambdaPromise(params);

return responseFromLambda2; //this should return {StatusCode: 202, Payload: ''}
};

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.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

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

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!