Skip to content

Insights / Topic

Engineering

Modernization, architecture decisions and the craft of shipping software.

  1. Engineering · Illustrative scenario

    Postgres NULL uniqueness: define the missing-key rule

    Choose whether an absent locale is an unknown draft or the one tenant default, then carry that meaning through duplicate resolution, unique enforcement and upsert behavior.

    Dopstack Engineering · · 9 min read

  2. Engineering · Illustrative scenario

    Promise.all failures: stop admission, then drain work

    Separate the first failed result from admission, cooperative cancellation and final settlement; preserve input-indexed outcomes and wait before releasing shared resources.

    Dopstack Engineering · · 9 min read

  3. Engineering · Illustrative scenario

    Python loop callbacks: bind values, choose snapshots

    Fix loop-name binding, then separately test mutable-object aliasing and callback argument shape; an early-bound object is not a historical snapshot.

    Dopstack Engineering · · 8 min read

  4. Engineering · Illustrative scenario

    Postgres JSONB indexes: test the rewrite’s meaning

    Making a predicate index-compatible can change its answer. Compare typed fixtures before choosing a JSONB access path.

    Dopstack Engineering · · 9 min read

  5. Engineering · Illustrative scenario

    Python Requests timeout: bound the worker lifetime

    Socket inactivity and worker ownership are different limits. Give a read-only import a process boundary and let the parent accept the result.

    Dopstack Engineering · · 9 min read

  6. Engineering · Illustrative scenario

    Postgres NOT IN with NULL: choose the missing-row rule

    An empty export can hide a choice about missing data. Make nulls, tenant boundaries and the expected account set explicit before changing the query.

    Dopstack Engineering · · 9 min read

  7. Engineering · Illustrative scenario

    Python duplicate logs: trace handler ownership

    The same console line can come from one record taking several paths. Trace those paths before changing propagation or deleting handlers.

    Dopstack Engineering · · 9 min read

  8. Engineering · Illustrative scenario

    Postgres keyset cursors: preserve timestamp precision

    Preserve the exact database sort tuple in the cursor, separate display formatting from continuation, and test microseconds as well as ties.

    Dopstack Engineering · · 9 min read

  9. Engineering · Illustrative scenario

    Postgres ALTER TABLE: limit the lock queue

    A waiting schema change can block later readers. Reconstruct the queue, scope the timeouts and keep the migration transaction short.

    Dopstack Engineering · · 9 min read

  10. Engineering · Illustrative scenario

    Node.js stream backpressure: bound the whole export

    A stopped export consumer should stop its source. Build a pull-driven pipeline, cap record size and test the failure boundary.

    Dopstack Engineering · · 9 min read

  11. Engineering · Illustrative scenario

    asyncio timeout: your thread may still be running

    A request deadline can expire while a blocking SDK still occupies its thread. Keep admission tied to executor completion, then test the cancellation path.

    Dopstack Engineering · · 10 min read

  12. Engineering · Illustrative scenario

    Postgres too many clients: budget the whole fleet

    A worked deployment review: count process-owned pools, preserve operational reserves and reject unsafe rollout or failover commitments before Postgres runs out of slots.

    Dopstack Engineering · · 11 min read