What happens if SQS messages partially fail in SendMessageBatch?


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.


  • 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.
asked 3 months ago76 views
1 Answer

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 picture
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions