Idempotency
Also called Idempotency key, Duplicate protection
Definition
Processing the same row twice produces one event, not two, so a re-uploaded usage file never bills twice.
How it works
Usage arrives in files that get re-exported, re-sent, and overlap by a day. Without a rule for what makes a row the same row, every re-upload double-bills.
A template names the columns that together identify a row; the key built from them is stored with the event, and a matching key on a later upload is skipped. That makes it a product feature: the operator picks the columns.
Example
Example: Halden Voice, an invented voice AI company, uploads a call log of 12,000 rows for 1 to 10 March, then a re-export for 6 to 15 March with 13,000 rows, 6,000 of which repeat the first file.
With the call ID as the key, the second upload adds 13,000 − 6,000 = 7,000 new events, so March holds 12,000 + 7,000 = 19,000 calls. Without a key, March would bill 25,000 calls, 6,000 of them twice.