// Articles
Guides, tutorials, and comparisons to help you build better backend applications.
How to separate expected errors from bugs in a TypeScript backend: domain error types, one place that maps them to HTTP responses, safe messages, logging that keeps the cause, and what clients should retry, with examples on Encore.
How Temporal and AWS Step Functions compare for long-running backend workflows: code versus state machine definitions, execution limits, retries, history, local testing and hosting, and when a simple queue and a state table is enough.
How Amazon Route 53 and Google Cloud DNS compare for hosting DNS for an application: routing policies, alias records, health checks, private zones, DNSSEC, registrar support and what changes when you run on both clouds.
How the client credentials grant works, when it is the right flow, what a token endpoint must check, how to store client secrets and tokens, and a working token endpoint with scope checks on Encore.
How to tell when synchronous work is stalling a Node.js server, measure event loop delay, find the usual culprits, and fix them with async APIs, chunking and worker threads, with a measurement endpoint on Encore.
Shared tables with a tenant ID, a schema per tenant or a database per tenant: how the three models compare on isolation, cost and migrations, and how to design the shared model so one tenant cannot touch another.
How to receive shipment tracking webhooks from carriers or a tracking aggregator, verify them, drop duplicates, handle out-of-order events and a polling fallback, and publish status changes, built with Encore.
What reserved and provisioned concurrency each do, how they share the 1,000 concurrent execution account limit, why a low reservation throttles an SQS consumer, and how to cap a worker without starving other functions.
Why a scheduled job can run twice, overlap or be skipped, and four patterns that make it safe: period keys, run claims, per-item idempotency and catch-up, with a nightly billing example on Encore.
How to schedule medication reminders across time zones and daylight saving changes, send each one exactly once, track taken and missed doses and escalate, built with Encore cron, Pub/Sub and Postgres.
How to find out why a Go service is slow or uses too much memory: expose pprof safely, capture CPU, heap, goroutine, block and mutex profiles, read flame graphs, compare before and after, and profile from benchmarks and tests.
How to replace long-lived AWS access keys in GitHub secrets with an OIDC identity provider and a short-lived role, including the trust policy conditions that decide which repositories and branches can assume it.