Categories

Backend

10 posts in “Backend”.

Build your own webhook transport

How to build a webhook registry and delivery system on Postgres using outbox rows, delivery attempts, signatures, retries, and inbound inbox rows.

16 min read

The claim loop

Minimal Postgres claim loop: enqueue, SKIP LOCKED claim, complete, and handler retry with an interactive simulation.

15 min read

Crash recovery

Leases, lease cleanup, at-least-once delivery, and handler idempotency for Postgres inbox workers.

12 min read

Many workers

Multi-worker contention, delivery guarantees, and per-key ordering before consistent hash.

15 min read

Partitioning at scale

Consistent hash, heartbeats, rebalance windows, and multi-worker simulation with ring ownership.

20 min read

Production controls

Lease renewal, fencing, graceful drain, and housekeeping for Postgres-backed durable work after order:9182 ships.

18 min read

Cross-service handoffs

Transactional outbox, transport choices, webhooks, contracts, and when brokers fit. Work that leaves your database commit.

12 min read

Schema and operations

Full Postgres schema, inbox SQL, observability, testing, and schema evolution for order:9182.

20 min read

Performance and scaling

Claim-path tuning, indexes, and an interactive performance tuner for Postgres claim loops.

15 min read