Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 882 Bytes

README.md

File metadata and controls

25 lines (14 loc) · 882 Bytes

The State Machine

This is an example CDK stack to deploy The State Machine stack described by Jeremy Daly here - https://www.jeremydaly.com/serverless-microservice-patterns-for-aws/#statemachine

You would use this pattern if you can do your processing asynchronously and you need to have different flows in your logic.

Architecture

Stepfunction Logic

Architecture

Testing It Out

After deployment you should have a proxy api gateway where any url hits a lambda which triggers a step function. You can pass in a queryparameter like '?flavour=pepperoni' or '?flavour=pineapple'.

If you pass in pineapple or hawaiian you should see the step function flow fail when you check it via the console.

Available Versions