// Articles
Guides, tutorials, and comparisons to help you build better backend applications.
How to build a job queue on Postgres with FOR UPDATE SKIP LOCKED, leases, retries and cleanup, when a library such as River or pg-boss is the better call, and when a managed topic beats a jobs table.
Design the system that sends webhooks to your customers: an event log, per-endpoint signing secrets in the Standard Webhooks format, retries with exponential backoff, dead endpoints, and replay, built by hand on AWS or with a topic and subscription in code.
How stateless JWTs and server-side sessions differ on revocation, storage, size and scaling, where each one fits, and how both look as an auth handler in a TypeScript backend.
Design the backend that renews insurance policies on time: policy terms as date ranges, a daily renewal scan, re-rating, offer documents, reminder schedules, payment collection, and lapse handling, built by hand on AWS or in TypeScript with Encore in your own account.
What ECS, Cloud Run and Kubernetes do when they stop a container, how long you get after SIGTERM, how to drain HTTP requests and queue consumers in Node.js and Go, and the PID 1 mistake that skips it all.
Design the backend behind a fleet tracking product: batched GPS ingestion, latest-position and history tables, trip detection, PostGIS geofences and alert fan-out, built by hand on AWS or in TypeScript with Encore in your own account.
Design the backend behind an EV charging network: OCPP events from chargers, session state, meter values, tariffs with idle fees, payment holds and captures, and roaming hooks, built by hand on AWS or in TypeScript with Encore in your own account.
Where plain environment variables are fine, where they leak, what a secrets manager adds, and why most production setups end up injecting secrets from a manager into the environment, with ECS, local development and AI coding agents in mind.
Compare Encore, AWS Secrets Manager, Google Secret Manager, Infisical, OpenBao, 1Password and SOPS as replacements for Doppler, by where the secrets live, how apps receive them and what local development looks like.
How browsers decide whether your frontend can call your API, what a preflight request is, why credentials and wildcard origins do not mix, and how to configure CORS in Express, Go and Encore without opening the API to every site.
The X-Ray SDKs and daemon reach end of support in February 2027. Compare Encore's built-in tracing, AWS Distro for OpenTelemetry with CloudWatch, Jaeger, Grafana Tempo, Honeycomb and Datadog APM for tracing a backend on AWS.
Design API keys that are safe to store and easy to rotate: prefixed random keys, hashed at rest, looked up by a public prefix, scoped and revocable, with a TypeScript implementation by hand and as an Encore auth handler.