Arezgitfield notes / engineering
TOPIC COLLECTION21 GUIDES

Engineering practice

Practical engineering practice guides for your next development decision.

Engineering practice5 min read

Parse Fixed-Scale Decimal Amounts Without Float Rounding

Parse bounded decimal text directly into integer units, reject excess precision, and preserve an explicit two-decimal contract across application interfaces.

Read field note
Engineering practice4 min read

Schedule Civil Time Across Clock Changes Explicitly

Distinguish recurring local-time intent from fixed instants, work through skipped and repeated clock times, and give missed occurrences a recoverable identity.

Read field note
Engineering practice4 min read

Choose Unicode Normalization as an Identifier Policy

Distinguish canonical equivalence, compatibility mappings, and visual confusability, then migrate identifier comparison keys without silently merging records.

Read field note
Engineering practice5 min read

Prevent Lost Updates with Atomic If-Match Checks

Trace two editors through a stale HTTP update, enforce a strong version precondition atomically, and return conflicts that preserve the user's unsaved work.

Read field note
Engineering practice6 min read

Choose PostgreSQL Isolation from Business Invariants

Model concurrent transaction schedules, choose coordination for business rules, and retry complete PostgreSQL decisions without repeating remote side effects.

Read field note
Engineering practice6 min read

Diagnose PostgreSQL Deadlocks Through Lock Order

Distinguish lock waits from deadlocks, identify conflicting acquisition paths, and coordinate PostgreSQL writers with consistent ordering and bounded recovery.

Read field note
Engineering practice7 min read

Define PostgreSQL Upsert Outcomes Before Writing SQL

Choose uniqueness boundaries and PostgreSQL conflict actions that preserve ownership, make concurrent results explicit, and keep duplicate requests observable.

Read field note
Engineering practice6 min read

Bound Async Queues Before Overload Reaches Memory

Budget queued work, propagate backpressure, and choose explicit overload behavior so asynchronous processing remains observable and recoverable under slow consumers.

Read field note
Engineering practice5 min read

Budget PostgreSQL Connections Across Application Pools

Size PostgreSQL connection pools across replicas, workers, and deployment overlap, with bounded waits and evidence for diagnosing saturation.

Read field note
Engineering practice6 min read

Read PostgreSQL Query Plans Before Changing Indexes

Use PostgreSQL plan estimates, execution evidence, row counts, and workload context to diagnose slow queries before choosing an index change.

Read field note
Engineering practice5 min read

Design Cursor Pagination for Changing Datasets

Build deterministic cursor pagination with stable ordering, request-bound cursors, bounded queries, and explicit behavior for concurrent dataset changes.

Read field note
Engineering practice5 min read

Use ETags Without Caching the Wrong Response

Define representation-aware ETags, choose private and shared cache policies, and verify conditional requests without weakening authorization.

Read field note
Engineering practice5 min read

Use a Transactional Outbox for Reliable Event Delivery

Coordinate database changes and event delivery with an outbox, bounded relay ownership, idempotent consumers, and explicit crash recovery tests.

Read field note
Engineering practice5 min read

Drain In-Flight Requests During Application Shutdown

Design bounded shutdown for requests, keep-alive connections, streams, background jobs, and shared resources, then verify the real termination path.

Read field note
Engineering practice5 min read

Ship Dependency Updates in Verifiable Batches

A dependency update workflow for inventory, risk grouping, lockfile review, deterministic installation, focused testing, rollout evidence, rollback, and automation.

Read field note
Engineering practice5 min read

Design Idempotent API Write Operations

A server-side design for safe API retries using idempotency keys, atomic records, payload fingerprints, concurrent-request handling, retention, and observability.

Read field note
Engineering practice5 min read

Build Observability for Release Verification

A release-focused observability design connecting artifact identity, metrics, traces, logs, domain invariants, baselines, decision gates, and rollback evidence.

Read field note
Engineering practice5 min read

Design API Errors with Problem Details

A practical RFC 9457 error contract covering stable types, safe details, validation failures, correlation, status codes, extensions, compatibility, and testing.

Read field note
Engineering practice6 min read

Design Timeouts and Retries Without Amplifying Failure

A practical resilience model for deadline budgets, retry eligibility, exponential backoff, jitter, attempt limits, overload protection, and safe observability.

Read field note
Engineering practice6 min read

API Testing Before Release: Boundaries That Deserve Evidence

A focused API release-testing strategy for schemas, authorization, failures, idempotency, webhooks, timeouts, compatibility, and safe observability.

Read field note
Engineering practice6 min read

Safe Database Inspection Before a Release

A disciplined database review workflow using read-only access, explicit targets, query plans, migration checks, bounded results, and recoverable writes.

Read field note