Ravi Sir's Cards › AWS
Order workflow with Step Functions
This revision card explains Order workflow with Step Functions. It starts from the need that flipkart-style flow paid , then packed , then shipped needs ordered steps, retries, and a clear status — not one giant Lambda. AWS Step Functions runs a state machine. Each Task state invokes a Lambda; DynamoDB holds status; SNS alerts on shipped. The how-to section notes write ASL JSON (zip), create state machine, three Lambdas (markPaid, markPacked, markShipped), start execution with orderId. An example on the card is startExecution {"orderId":"O-42"} , then DynamoDB status moves paid, then packed, then shipped and you get an SNS email.
Read card text
What this card says
Why do we need it?
Flipkart-style flow paid → packed → shipped needs ordered steps, retries, and a clear status — not one giant Lambda.
What is it?
AWS Step Functions runs a state machine. Each Task state invokes a Lambda; DynamoDB holds status; SNS alerts on shipped.
How to do it
Write ASL JSON (zip), create state machine, three Lambdas (markPaid, markPacked, markShipped), start execution with orderId.
Standard workflow
Example
StartExecution {"orderId":"O-42"} → DynamoDB status moves paid→packed→shipped and you get an SNS email.