Mehdi Akiki

Posts tagged "idempotency"

  • Published on

    Investigation · Part 10 of 10 · Following a TCP connection

    What a Connection Pool Saves, and the Stale Connection It Gives You Back

    Reusing one connection made 1000 HTTPS requests 21 times faster, and with the stock Python server it first made them 60 times slower. I measured what a pool saves, what a stale connection returns, and which retry pays the same customer two times.
  • Published on

    Article · Derived state

    How to Keep Two Systems in Sync

    When you sync two systems with webhooks, the copy slowly becomes wrong: some events are lost, some are duplicated, some arrive in the wrong order. Reconciliation is the way to make the two systems agree again. Here is how to design an API for it.
  • Published on

    Reference · Interrupted execution

    What an Idempotency Key Is (and How to Build One)

    A request times out, you retry, and now the customer is charged two times. An idempotency key is the small idea that makes retries safe. Here is what it is and how to build one.