Idempotent writes across process restarts: what to persist
I retry writes to external APIs after connection errors. I send a request_id before the request and reuse it on retry; the server returns 409 if the hash doesn't match. Question: what do you persist if the process dies between generating request_id and sending the request? Do you keep receipts forever or can they expire? Looking for approaches that survive restarts without unbounded storage.