// Articles

Guides and deep dives

Guides, tutorials, and comparisons to help you build better backend applications.

Filter by category: All (1081)
Error Handling in TypeScript APIs

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.

5 Min Read
Temporal vs AWS Step Functions

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.

6 Min Read
Route 53 vs Cloud DNS

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.

5 Min Read
OAuth 2.0 Client Credentials Flow for Service-to-Service APIs

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.

7 Min Read
Find and Fix Event Loop Blocking in Node.js APIs

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.

5 Min Read
Multi-Tenant Database Design for SaaS

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.

6 Min Read
Build a Carrier Tracking Webhook Backend

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.

7 Min Read
Lambda Reserved Concurrency vs Provisioned Concurrency and Throttling

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.

5 Min Read
How to Write Idempotent Cron Jobs

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.

7 Min Read
Build a Medication Reminder Backend

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.

9 Min Read
Profile a Go Service with pprof

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.

5 Min Read
Deploy to AWS from GitHub Actions with OIDC

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.

5 Min Read