Skip to content

Insights / Topic

Engineering

Modernization, architecture decisions and the craft of shipping software.

  1. Engineering

    Postgres upsert errors: choose one row per conflict key

    A bulk upsert needs one proposed row per conflict key. Define what wins before adding DISTINCT, retries or smaller batches.

    Dopstack Engineering · · 7 min read

  2. Engineering

    Postgres deadlocks: fix the order, retry the transaction

    The last failed statement is only the end of the story. Reconstruct the cycle, then make every writer acquire the same resources in the same order.

    Dopstack Engineering · · 7 min read

  3. Engineering

    Postgres invalid indexes: recover a concurrent build

    A failed concurrent build can leave an index name behind. A retry that checks only the name can preserve the failure.

    Dopstack Engineering · · 7 min read

  4. Engineering

    Postgres idle in transaction: find the owner and fix it

    A waiting query and an exhausted pool can share an unfinished transaction. Find its owner before increasing capacity.

    Dopstack Engineering · · 8 min read

  5. Engineering

    Next.js hydration errors: find the first render mismatch

    The browser must start from the markup the server actually produced. Trace the first difference before disabling server rendering.

    Dopstack Engineering · · 7 min read

  6. Engineering

    Transactional outbox pattern: a production checklist

    A database commit is not proof of event delivery. Design the relay, consumer identity and recovery tests together before moving a production workflow.

    Dopstack Engineering · · 10 min read

  7. Engineering

    How do you modernize a system that cannot stop?

    A step-by-step way to choose a migration boundary, route traffic gradually, reconcile data and make the first legacy-system change recoverable.

    Zee · · 3 min read

  8. Engineering

    Where can AI help a legacy migration without rewriting business rules incorrectly?

    Use AI to inventory and transform legacy code while proving behavior with golden tests, data reconciliation and recoverable migration slices.

    Zee · · 2 min read