Insights / Topic
Engineering
Modernization, architecture decisions and the craft of shipping software.
Engineering · Illustrative scenario
Postgres 25P02: put recovery at the right boundary
An illustrative import accepts a required record and attempts an optional annotation. Decide whether annotation failure invalidates the import before choosing a savepoint.
Engineering · Illustrative scenario
Python subprocess hangs: choose an output budget
Draining both pipes solves one deadlock. Output retention and child ownership still need explicit limits.
Engineering · Illustrative scenario
Postgres UPDATE FROM: prove one source row per target
An updated-row count cannot prove that an ambiguous source applied the intended inventory change.
Engineering · Illustrative scenario
Python async cache: choose who owns cancellation
Share unfinished lookups without handing their lifetime to whichever request arrived first.
Engineering · Illustrative scenario
Fetch timeout: keep cancellation through the body
Keep a successful status line from ending the timeout before the JSON response has arrived.
Engineering · Illustrative scenario
Postgres sequence repair: protect the allocation boundary
Diagnose a generated primary-key collision without moving a healthy allocator backwards.
Engineering · Illustrative scenario
Python async generators: close before the pool
Carry ownership through an early return, nested wrapper and failure matrix, with a negative trace fixture.
Engineering · Illustrative scenario
Postgres SKIP LOCKED: empty is not drained
Show how a correct claim still produces a false batch-completion decision, then define admission and inventory evidence.
Engineering · Illustrative scenario
Python DST arithmetic: separate gaps from local rules
Carry a regional publishing rule through fold arithmetic, strict round-trip resolution, durable occurrence identity and a separate elapsed-gap acceptance boundary.
Engineering · Illustrative scenario
Postgres latest row: filter before or after selection?
Show a correct deterministic query that still lies about current health when status is filtered before choosing the latest event.
Engineering · Illustrative scenario
Python mutable defaults: decide who owns the input
Fix omitted-argument leakage separately from caller-owned input mutation; use a strict job-configuration boundary with schema-aware reconstruction instead of indiscriminate deepcopy.
Engineering · Illustrative scenario
Postgres LEFT JOIN: keep zero rows and report grain
Carry one tenant report through ON versus WHERE, count non-null keys and a second one-to-many fan-out; prove one row per tenant using result invariants.