Skip to content

Commit

Permalink
Add note on default retry behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
bryophyta committed Jul 12, 2024
1 parent 151dde1 commit d678b57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scheduled-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ no need to write business logic or maintain a Lambda with the dependencies requi
#### Cons
* EventBridge requests to an API destination endpoint have a maximum timeout of 5 seconds. So if your task takes more than 5 seconds, and you need the
caller to be aware of its outcome (e.g. to enable retries on failure) this approach won't be suitable.
* nb. More generally, make sure to check the default timeout and retry settings to avoid swamping your service.
* The AWS constructs require a fair amount of boilerplate CDK code, but there are examples in the Guardian estate that could be used as a basis, e.g. [in the crosswords status checker](https://github.com/guardian/crosswordv2/blob/126acf8c6cf88dcc2edc0e851df5b2d0bbe8685b/cdk/lib/scheduled-status-check.ts).


Expand Down

0 comments on commit d678b57

Please sign in to comment.