A while ago I looked at a state machine that answered a simple API call in well under a second. It had been running for months, two million times a month, and nobody had questioned the workflow type. It was Standard, because Standard is what you get when you click through the console without thinking. That one default decision turned a two-digit monthly bill into a three-digit one.
AWS Step Functions offers two workflow types, Standard and Express. They look almost the same, but they are billed in completely different ways – and you cannot switch the type of an existing state machine. In my full article on Step Functions Express vs Standard I work through the numbers for a fictional bike rental shop and build both variants with the Serverless Framework. Here is the condensed reasoning.
Two pricing models that reward opposite things
Standard charges per state transition . Time is free: a Wait state that pauses for three days costs the same as one that pauses for three seconds.…