Discussion about this post

User's avatar
Rui Moreira's avatar

Great article, indeed! Normally I use the order_id, or the ID related to the subject we’re discussing, as the idempotency key, which works wonderfully in the SQL world. However, whenever I have a key-value store or a NoSQL DB like Cassandra, I prefer hashing the content to create an idempotency key, since it adapts better to that model.

I’m just wondering about this part from your article:

total charge (some kind of checksum to avoid mismatched retries with different amount).

Is this checksum applied so that we can identify changes in each product’s price, and not rely solely on the total amount? The total could theoretically be the same even if individual product prices have changed.

Expand full comment
2 more comments...

No posts