Deduplication
Definition
Deduplication identifies items that represent the same thing, by message id, business key or content hash, and ensures their effect or storage happens only once.
In practice
In messaging, dedup turns at-least-once delivery into effectively-once results: the consumer records each id it has processed and ignores repeats, ideally in the same transaction as the side effect. In storage, systems split files into chunks addressed by hash and store each unique chunk once, which saves space and makes re-uploads of unchanged data instant.
Dedup windows are finite: brokers such as SQS FIFO only dedupe within minutes, and an id table must eventually be pruned. Content-based dedup across users can leak information, because a fast "upload" reveals that someone else already stored the same file, so it is often limited to one account.
Example
A sync client hashes a 40 MB file into 4 MB chunks; only 2 of the 10 chunk hashes are unknown to the server after an edit, so it uploads 8 MB instead of 40 MB.