Two protections for different problems
Why protecting a transaction's correctness differs from making repeated requests have the same effect, and why an ingestion workflow can need both. · associate
ACID transactions protect a logical unit of database work. Idempotency means repeating the same logical request does not change its intended effect beyond the first successful application. One asks whether related changes are correct together; the other asks what happens when work is repeated.
ACID has four properties. Atomicity makes changes take effect together or not at all. Consistency preserves defined rules and constraints, with correct application logic still required. Isolation controls how concurrent transactions interact. Durability means acknowledged commits survive failures within the database's documented guarantees.
Neither protection implies the other. A database can commit the same valid transaction twice. Conversely, an operation can be safe to repeat without protecting several related changes from partial completion. Choose protections by identifying both the correctness rules and the effects of retries.
| Question | ACID transactions | Idempotency |
|---|---|---|
| Main concern | Correct transaction execution | Effect of repeated requests |
| Partial changes | Atomicity prevents them | Not inherently prevented |
| Duplicate requests | Can commit separately | Do not add intended effects |