Idempotent File Anchoring in Node.js: Hash-First Deduplication
A document intake pipeline processes the same file twice. Different filenames, same bytes. Or a client resubmits a packet of evidence that was timestamped last month. Every duplicate call to a rate-li
craigsolomon.hashnode.dev8 min read
Andrew
Hash first limits calls to genuinely new content but full reads and writes of the JSON on every operation let concurrent runs clobber the state