I'm looking a solution for my problem and maybe someone could give me some ideas.
I have a API Gateway
plugged to a aws lambda
A.
I have to handle cases like this:
- Lambda A should call lambda B and if there are any results, return to the API Gateway.
- Lambda A should call lambda B and if no results, it will call lambda C, and then return whatever the results are to the
APi Gateway
.
So, my problem is how to chain these lambdas, because I don't want to have a huge lambda.
At first, I thought about using Step Functions
except that this works in a asynchronous mode, so no good for my case. I know I can do a lambda to call the step function and wait for the result, but I don't like this solution.
Any ideas for a nice solution ?
Thanks.
C.C.