Skip to content

Batch Processing - Why handle Full Badge failures different than partial failures. #1785

Closed Answered by dreamorosi
RaphaelManke asked this question in Q&A
Discussion options

You must be logged in to vote

Hi again!

I remember we discussed this either offline (Twitter/Discord DMs) or in person at re:Invent, but for the sake of other people bumping into this I'll write down the answer here as well.

The initial implementation was made in this way because from a producer perspective (i.e. SQS, Kinesis, etc.) a consumer that throws an error is functionally equal to one that returns a partial failure list that contains all the items. This is because in both cases all the items in the batch are eligible to be retried.

With this in mind, we decided to throw an error to explicitly reflect the full batch failure in the operational metrics (i.e. function runtime errors). Looking at your use case howe…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dreamorosi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants