Gibberling Lard
Gibberling Lard

Reputation: 217

How to detect the failure of a Lambda which is called by another Lambda?

I've recently been dealing with a project which has a peculiar design - the server invokes an aws lambda which itself invokes another lambda - and the second lambda is failing. However, it seems the first lambda (the server-invoked one) is not receiving any error from the second one, so it just waits, and so does the server, until there is a timeout.

I was wondering if this is a common problem and if there is a "typical" solution, best-practices to consider, etc.

I don't think language is particularly important - I want to know if there's a simple, quick, direct way of dealing with the problem in the title without doing things like overhauling everything or setting global flags.

Upvotes: 0

Views: 177

Answers (1)

Paul MG
Paul MG

Reputation: 101

Have you taken a look at Step Functions? They're a great way of managing Lambda functions that need to happen sequentially or conditionally.

There's some pretty good debug features as well; you'll be able to see input and output data, and any errors.

https://aws.amazon.com/step-functions/

Upvotes: 1

Related Questions