Series · 4 parts

Reliable Backend Patterns

Bounded failure, duplicate safety and asynchronous work in production web services.

  1. 1
    Idempotency Keys for Payment-Style APIs

    Build retry-safe POST endpoints with stable operation identity, atomic writes, replay rules and recovery after ambiguous timeouts.

    2 minAdvanced

  2. 2
    Transactional Outbox with PostgreSQL: Closing the Dual-Write Gap

    Commit domain data and event intent together, build a relay, and design consumers for unavoidable duplicate delivery.

    1 minAdvanced

  3. 3
    Timeouts, Retries, Backoff and Jitter Without Retry Storms

    Build a bounded retry policy that respects caller deadlines, downstream capacity and idempotency requirements.

    2 minIntermediate

  4. 4
    Distributed API Rate Limiting with Token Buckets

    Select the right identity and budget, enforce atomic token accounting, and choose failure behavior by endpoint risk.

    2 minIntermediate