Menu
×
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

AWS Serverless Step Functions for Failure Management


Step Functions for Failure Management

Step Functions were introduced as a method of visualizing and coordinating your workflow.

Step functions work in steps.

Use Step Functions to reduce the amount of custom call retries.

Step Functions provides try/catch/finally logic for known and unexpected faults.


Step Functions for Failure Management Video

W3schools.com collaborates with Amazon Web Services to deliver digital training content to our students.


How it works

Step Functions goes through the "catchers" for a matching error.

Each catcher has the ability to manage several mistakes.

Step Functions also allows you to use a visual workflow to debug issues.

You may also see information about the execution, like the thrown errors or created outputs.

The execution history in Step Functions is a useful tool for diagnostics.

Ensure that production code can handle AWS Lambda service errors as a best practice.

Lambda service exceptions should be handled by any jobs that call a Lambda function.


The SAGA Pattern

Step Functions also provide an error handling way called the SAGA pattern.

It is used to handle failures when each phase involves transactions that erase previous changes.


Related reads:

Handling Error Conditions Using a State Machine
Error Handling: Examples Using Retry and Using Catch
Handle Lambda Service Exceptions

AWS Serverless Exercises

Test Yourself With Exercises

Exercise:

How Step Functions work?

In 

Start the Exercise


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.