Better Programming

Advice for programmers.

Follow publication

Member-only story

3 Pitfalls of AWS Step Functions and How You Can Avoid Them

Allen Helton
Better Programming
Published in
11 min readMay 11, 2022
Photo by Breana Panaguiton on Unsplash

Last week I got a call asking for help with a nasty bug in production.

The bug dealt with processing data at a scale the dev team hadn’t anticipated. They were using [Step Functions](https://aws.amazon.com/step-functions/) to orchestrate a workflow that took an array of objects, processed them, and shoved the transformed objects into DynamoDB.

On the surface, it sounds like a pretty standard workflow — literally what Step Functions was designed to do. But upon closer inspection, we realized we were running into the [max request size limit](https://docs.aws.amazon.com/step-functions/latest/dg/limits-overview.html#service-limits-task-executions) of 256KB because the array was so large.

Debugging the issue took significantly longer than expected because we continuously had to trigger a workflow and wait for it to finish. It was taking 15+ minutes every run because of the amount of items being processed.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Allen Helton
Allen Helton

Written by Allen Helton

I am an AWS serverless hero with a strong focus on API design and standardization, event-driven architectures, and software automation.

Write a response