Broadway SQS message acknowledgement

Do i understand correctly that SQS messages get acknowledged if you return them in the handle_batch list? (meaning that if you leave one out of that list it will get retried later)

Thanks in advance,

1 Like

Yes. The default behaviour is to ack all successful messages returned. However, you should consider that as an implementation detail, not a feature. If you want a message to be retried, it’s better to explicitly mark it as failed with Message.failed/2 instead of not returning it.


Thank you Marlus, in the meantime i discovered that function, hehe