CouchDB data modeling: what belongs in a document
Decide what a CouchDB document owns, then choose IDs, relationships, indexes, partitions, security boundaries, and deletion rules that fit that decision.
Decide what a CouchDB document owns, then choose IDs, relationships, indexes, partitions, security boundaries, and deletion rules that fit that decision.
How to build a webhook registry and delivery system on Postgres using outbox rows, delivery attempts, signatures, retries, and inbound inbox rows.
Domain-Driven Design in TypeScript
Learn where DDD repositories end and infrastructure safeguards begin when enforcing tenant isolation in a shared-schema database.
Domain-Driven Design in TypeScript
Learn how domain events, a transactional outbox, and a process manager let a DDD workflow resume tenant onboarding after failures.
Domain-Driven Design in TypeScript
Learn how tactical DDD uses an aggregate root, entities, and immutable value objects to keep an enterprise seat-allocation rule true.
When a service-local process outgrows one queue row, add explicit workflow state, step scheduling, timers, signals, and versioning.
Separate claim-query cost, handler capacity, hot keys, and transport limits before changing queue technology.
The Postgres schema, operational queries, and tests used to inspect and verify the durable-work implementation.
Transactional outbox, transport choices, webhooks, contracts, and when brokers fit. Work that leaves your database commit.
Lease renewal, fencing, graceful drain, and housekeeping for Postgres-backed durable work after order:9182 ships.
Use fixed database buckets, a consistent-hash ring, and live membership when work benefits from staying on the same process.
Multi-worker contention, delivery guarantees, and per-key ordering before consistent hash.
Leases, lease cleanup, at-least-once delivery, and handler idempotency for Postgres inbox workers.
Minimal Postgres claim loop: enqueue, SKIP LOCKED claim, complete, and handler retry with an interactive simulation.
Theme lab
⌘/Ctrl⇧. to toggle