Lets say I have two lambdas: A & B. A is listening to an SQS.
I want the flow to be as followed:
- A message arrived to the SQS.
- Lambda A pulls the message and starts working on it.
- After lambda A started, lambda B also takes the message and does other things. But lambda B must start after A has already started.
I know I can use lambda A to put the message on another SQS, and then lambda B will listen to the new SQS. But I was wondering if there is a better way to run the lambdas one after another.
Thanks