Third party integration with SQS and Lambda


Hi. When a user is created, I must also create it in a third-party service and ensure that it is created. Then, I send it to SQS, which triggers a Lambda responsible for doing the integration. This lambda makes about 5 different http requests that depend on each other (I need the payload of the response from the first to execute the second call).

However, if any request fails, I must ensure that the message gets back on the queue and what was done is not done again next time. So, to save the state and separate the calls into steps, I'm thinking of saving this data in DynamoDB and retrieving it when necessary, but I don't believe it's the best solution. Has anyone faced something similar or have any ideas?

Thank you so much.

asked 2 years ago401 views
1 Answer
Accepted Answer

For orchestration across multiple lambda functions, you should look at using Step Functions -

The following workshops can help you familiarize yourself with how Step Functions work -

Another example of how you can orchestrate using Step Functions can be found here -

profile pictureAWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions