Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect definition of backoff rate in stepfunctions #2

Open
IsmaelMartinez opened this issue Oct 19, 2020 · 0 comments
Open

Incorrect definition of backoff rate in stepfunctions #2

IsmaelMartinez opened this issue Oct 19, 2020 · 0 comments

Comments

@IsmaelMartinez
Copy link

Hi Brian,

I was looking at your article (https://brianklaas.net/aws/coldfusion/2019/05/31/Using-AWS-Step-Functions-In-CFML-Part-10.html) and found a wee inconsistency.

you indicate:
"BackoffRate is the number of seconds Step Functions will add to each IntervalSeconds on each subsequent retry beyond the first. This means that Step Functions will wait 30 seconds before the first retry, 40 seconds before the second, and 50 seconds before the third. Including service call backoff (and, specifically, exponential backoff) is a best practice when designing resilient systems."

but AWS indicates
"BackoffRate (Optional)
The multiplier by which the retry interval increases during each attempt (2.0 by default)."

So, for you example:

"Retry": [
    {
        "ErrorEquals": [ "States.ALL" ],
        "IntervalSeconds": 30,
        "MaxAttempts": 3,
        "BackoffRate": 10
    }
]

This will retry after 30s, then after 300s and then it will timeout as it is more than the 15 minutes limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant