AWS Step functions examples
In this example, the algorithm takes two input numbers and add them, then :
- If the result is larger than 500 the user should receive a SMS with a random number between 500-1000.
- If it’s less, then the random number in the SMS should be from 0-500.
- Otherwise, it will fail.
How To Use AWS Step Functions For Serverless Workflows?
AWS step functions process that calls the AddNumbers service, First, we will add input numbers, and then it will be decided whether the output number is greater than or less than the given constraints and the final state will be decided upon the results. While we could have one Lambda function call the other, we worry that managing all of those connections will become challenging as the AddNumbers application becomes more sophisticated. Plus, any change in the flow of the application will require changes in multiple places, and we could end up writing the same code over and over again.