title: What messageIds should be added to the BatchItemFailures when processing SQSEvent from a FIFO-queue in an AWS-Lambda
body: <p>According to <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-batchfailurereporting" rel="nofollow noreferrer">https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-batchfailurereporting</a> they recommend to not process more records if you fail to process a record because it will preserve the order of the messages in an FIFO queue.</p>
  <p>But does that mean I should add all subsequent MessageIds (the ones Im skipping) to the BatchItemFailures-collection?</p>