Tags

queues

8 posts tagged with “queues”.

Implement a durable work queue in Postgres

How to implement common queue and messaging patterns in Postgres: competing consumers, transactional outbox, idempotent handlers, leases, and dead letters.

10 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

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