What happens if SQS messages partially fail in SendMessageBatch?

0

If some messages fail and others succeed in SendMessageBatch, which of the following happens?

  • No messages will be retried automatically.
  • Only failed messages will be retried automatically.
  • All the messages, including the succeeded ones, will be retried automatically.

Assumptions:

  • All the attributes of the client API instance are set to the default.
    • e.g. retry_limit: 3
  • No error handling on the client side except the default retry mechanics.
已提問 2 年前檢視次數 791 次
1 個回答
0

If some messages were sent (and in some cases, even if all messages failed), the API call will return 200. Therefor, there will not be a retry by the SDK. It is your responsibility to check the result to check which messages were sent and which failed, and act accordingly.

profile pictureAWS
專家
Uri
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南