Skip to content
All tags

#networking

4 entries tagged #networking

  • Why Payment Retries Need Idempotency Keys

    Post · Jul 12, 2026

    You tap your card, the machine freezes, you tap again. Were you charged twice? An HTTP payment endpoint faces the same question on every retry, and without an idempotency key it gets it wrong.

  • Retry with Backoff & Jitter

    Snip · Jun 19, 2026

    A generic `retry(task, options)` that re-runs a failing async task with exponential backoff and full jitter, an optional `shouldRetry` predicate, and a cap on any single delay.

  • Make a Write Endpoint Safely Retryable

    Cheat · Jul 01, 2026

    A client that retries a POST after a timeout can create the resource twice or charge a card twice. An idempotency key lets the server spot the retry and replay the first response instead of doing the work again.