Join our community of over 9,300 readers delving into AWS. We highlight real-world best practices through easy-to-understand visualizations and one-pagers. Expect a fresh newsletter edition every two weeks.
Share
β‘οΈ Step Functions - Express vs. Standard - What Are the Differences?
Published 7 months agoΒ β’Β 3 min read
β Reading time: 11 minutes
π Main Learning: Step Functions - Express vs. Standard
while Sandro is learning something new at the AWS Community Day in Munich today, we'll explore Express and Standard Step Functions, the two types of workflows offered by AWS Step Functions.
Weβll break down their differences, when to use each, and the benefits of both.
Example Application: running both workflow types to see their performance differences
If you want to try out Step Functions on your own, please check out our example repository which can be used to deploy both workflow types into your own AWS account.
Comparison Overview
Before we do a deep dive, here's a quick overview about the most important differences.
Standard Workflows
Max Duration: One year π
Execution Start Rate: 800-1300/s
State Transition Rate: 800-5000/s
Pricing: By state transitions
Execution History: Detailed via APIs, console, and CloudWatch Logs
Service Integrations: All except Job-run (.sync) or Callback (.waitForTaskToken)
Distributed Map: β
Activities: β
It's very important to notice the billig differences:
β³ Duration at Express Step Functions vs.
π State Transitions at Standard Step Functions
β
Introduction
AWS Step Functions is a fully managed service that enables you to coordinate multiple AWS services (and basically everything else that has a HTTP API) into serverless workflows.
It simplifies building and running multi-step applications by providing a visual interface to design and manage workflows.
A Simple Step Functions Workflow
Key Features and Benefits
Visual Workflow Design: Graphical interface for designing workflows.
State Management: Automatically manages the state of each step.
Integration with AWS Services: Seamless integration with AWS services.
Scalability: Automatically scales to handle thousands of parallel executions.
Cost Efficiency: Pay-as-you-go pricing.
Audit and Monitoring: Detailed execution history and logs.
Flexibility: Supports both Standard and Express workflows.
Standard Step Functions
Standard Workflows are designed for long-running, durable, and auditable state management. They guarantee exactly-once processing, ensuring each step is executed precisely one time.
Transaction flow that requires each step to be executed exactly once
Perfect for applications where data consistency and reliability are critical, such as financial transaction processing systems. They handle long-running processes that may span hours, days, or even months.
The Standard workflow type can be used for processes with a duration of up to one year
Standard Step Functions are durable, maintaining state and recovering from failures. They are also auditable, logging every step for review, which is crucial for compliance and debugging.
Steps can be automatically reprocessed
Express Step Functions
Express Workflows are designed for high-volume, short-duration, and cost-sensitive applications requiring fast state management. They are optimized for high-throughput and low-latency processing.
Exactly Once vs. At-Least-Once Processing
Express Workflows offer at-least-once processing, suitable for scenarios where occasional duplicate executions are acceptable. They are perfect for short-lived processes that complete within minutes and can handle thousands of executions per second.
Express Workflows are cost-effective, billed based on the number of requests and duration of each execution. They provide basic error handling and retry mechanisms, ensuring workflows can handle transient failures.
Choosing the Right Step Function
Choose Express Workflows for:
High-frequency
Short-duration tasks
Rapid execution
Tolerating transient errors
Opt for Standard Workflows for:
Long-running
Durable tasks
Detailed execution history
Robust error handling
Our Recommendation
Start with Express Step Functions unless you have a valid reason against it. They are cheaper and often sufficient. Remember to configure logging for Express Step Functions, as debugging can be slower on AWSβs side, but the cost reduction is often worth it.
Conclusion
AWS Step Functions offers Standard and Express workflows to meet different needs. Standard Workflows are ideal for long-running, complex tasks with robust error handling and detailed execution history. Express Workflows are perfect for high-throughput, short-duration tasks, offering rapid execution and cost efficiency.
Tobi & Sandro
our goal is to simplify AWS & Cloud Learning for everybody. You don't need expensive certifications to build on AWS!
Join our community of over 9,300 readers delving into AWS. We highlight real-world best practices through easy-to-understand visualizations and one-pagers. Expect a fresh newsletter edition every two weeks.
Newsletter Header AWS FOR THE REAL WORLD β±οΈ Reading time: 8 minutes π Main Learning: Migrating from Edgio to CloudFront βοΈ Blog Post π» GitHub Repository Hey Reader ππ½ this newsletter is about π₯ AI π€ We haven't talked too much about AI, Bedrock, MCPs, and agents yet - so we want to change that. Please let us know if this it interests you to build AI on AWS, or if you are much more interested on hands-on fundamentals services. Should we focus on AI Services? Yes, I want to learn to build...
Newsletter Header AWS FOR THE REAL WORLD β±οΈ Reading time: 8 minutes π Main Learning: Migrating from Edgio to CloudFront βοΈ Blog Post π» GitHub Repository Hey Reader ππ½ This newsletter edition is all about saving Lambda costs. I (Sandro is writing this one) was recently involved in saving Lambda costs for a client. So, I thought writing down my thought process was a good idea. Have fun with it! If you need help saving AWS costs or improving your infrastructure, just reply to this email! Now...
β Reading time: 8 minutes π Main Learning: Federated Authentication with Cognito πΎ GitHub Repository βοΈ Read the Full Post Online π Hey Reader ππ½ Federated Authentication lets users sign in to your app using their existing accounts - most prominently Google! This approach eliminates the need to create and remember new credentials (which most users are very happy for! β¨), improving user experience and likely increasing conversion rates. π With OAuth 2.0 and Google as an identity provider, we...