Engineering practice
Practical engineering practice guides for your next development decision.
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 noteSchedule 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 noteChoose 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 notePrevent 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 noteChoose 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 noteDiagnose 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 noteDefine 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 noteBound 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 noteBudget 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 noteRead 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 noteDesign 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 noteUse 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 noteUse 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 noteDrain 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 noteShip 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 noteDesign 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 noteBuild 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 noteDesign 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 noteDesign 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 noteAPI 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 noteSafe 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