Skip to content
Color theme

Writing

Notes on code, trade-offs and the details that are easy to miss.

  • 4 min

    The idempotency check that has to run twice

    Draft — still being edited

    Checking an idempotency key before you take the row lock leaves a window two simultaneous requests can both walk through. The fix is one extra check, and the better fix is not needing the key.