Skip to content

Insights / Topic

Engineering

Modernization, architecture decisions and the craft of shipping software.

  1. 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.

    Dopstack Engineering · · 9 min read

  2. 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.

    Dopstack Engineering · · 9 min read

  3. 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.

    Dopstack Engineering · · 9 min read

  4. Engineering · Illustrative scenario

    Python async cache: choose who owns cancellation

    Share unfinished lookups without handing their lifetime to whichever request arrived first.

    Dopstack Engineering · · 9 min read

  5. 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.

    Dopstack Engineering · · 10 min read

  6. Engineering · Illustrative scenario

    Postgres sequence repair: protect the allocation boundary

    Diagnose a generated primary-key collision without moving a healthy allocator backwards.

    Dopstack Engineering · · 10 min read

  7. 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.

    Dopstack Engineering · · 8 min read

  8. 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.

    Dopstack Engineering · · 9 min read

  9. 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.

    Dopstack Engineering · · 10 min read

  10. 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.

    Dopstack Engineering · · 10 min read

  11. 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.

    Dopstack Engineering · · 9 min read

  12. 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.

    Dopstack Engineering · · 9 min read