---
title: "Comment by SMTasker on \"Why Amazon SQS Duplicates Messages (and How to Fix It)\" | Hashnode"
description: "An in-flight record needs a different response from a completed one. I would test this sequence: worker A claims the business ID, crashes before the side effect"
url: "https://hashnode.com/posts/why-sqs-delivers-duplicate-messages/6b042058f1c3b59e79817a41/comment/6b056b43fcc0deb1f25fe561"
---

[Discussion](https://hashnode.com/posts/why-sqs-delivers-duplicate-messages/6b042058f1c3b59e79817a41)

Comment [Why Amazon SQS Duplicates Messages (and How to Fix It)](https://hashnode.com/posts/why-sqs-delivers-duplicate-messages/6b042058f1c3b59e79817a41)

[SMTasker](https://hashnode.com/@smtasker)

[9h ago](https://hashnode.com/posts/why-sqs-delivers-duplicate-messages/6b042058f1c3b59e79817a41/comment/6b056b43fcc0deb1f25fe561)

An in-flight record needs a different response from a completed one. I would test this sequence: worker A claims the business ID, crashes before the side effect, and worker B receives the message while that claim still exists. B must not treat the claim alone as completed work and delete the only remaining message. That fixture makes claim expiry, recovery and the acknowledgement rule explicit.
