Retry and fallback solution in Spring cloud function on AWS Lambda when calling external API

34 views Asked by At

Need solution for the scenario I’ve in hand A) There is a spring boot service which on creation of data publishes an event(message payload) to the Kafka Topic B) There is a Spring cloud function on AWS lambda which listens to this topic and consumes the message (although not yet figured out whether to use Spring cloud function or Lambda function - need suggestion in decision making) C) This cloud function then calls an external Rest API, which is outside of AWS. Need to implement the solution for retry logic in Spring Cloud function in case the external Rest API does not respond back/fails. I followed this article below which suggests to use step functions for retry with backoff pattern implementation , is there any sample code for the same and what should be the cost considerations to keep in mind while using these services • https://dzone.com/articles/using-aws-step-functions-for-offloading-exponentia

Also, do we really need to implement the AWS step functions or is there any solution for retry logic in Spring Cloud function

I followed this article below which suggests to use step functions for retry with backoff pattern implementation , is there any sample code for the same and what should be the cost considerations to keep in mind while using these services • https://dzone.com/articles/using-aws-step-functions-for-offloading-exponentia

0

There are 0 answers