// Articles
Guides, tutorials, and comparisons to help you build better backend applications.
Build the backend of an ecommerce checkout: turning a cart into an order with stock holds that expire, charging with idempotency keys, confirming payment from a webhook, and releasing abandoned holds on a schedule, in Go.
Send a reminder in 24 hours, expire a trial in 14 days, retry a payment tomorrow. Why queues do not delay messages for days, how a Postgres table plus a cron job handles future work, and a TypeScript example with Encore.
Cloud Run can allocate CPU only while a request is being handled or for the whole life of the instance. How each mode behaves, what breaks with background work under request-based allocation, how to switch with gcloud, and how to choose.
The claim check pattern stores a large payload in object storage and sends only a small reference through the queue. When message size limits force it, how to design the reference, clean up payloads, and what to do about retries, with a Go example on Encore.
Backpressure is how a system slows producers or consumers when work arrives faster than it can be done. Bounded concurrency, flow control, queue-depth alerts, load shedding and rate limits for SQS and Pub/Sub consumers, with a TypeScript example on Encore.
Envelope encryption uses a KMS key to protect small data keys, and the data keys encrypt your records locally. How GenerateDataKey and Decrypt work, a Node.js example with AES-256-GCM, encryption context, key rotation and cost, plus a TypeScript service on Encore.
When an API call takes longer than a client or load balancer will wait, return 202 Accepted with a status URL and finish the work in the background. How to design the status resource, polling, callbacks and expiry, with a Go example on Encore.
An anti-corruption layer translates a third-party or legacy API into your own domain model, so its quirks stop at one boundary. How to design the translation, handle errors and versioning, test it, and build one in TypeScript on Encore.
How to run A/B tests from the backend: deterministic variant assignment by hashing, logging exposures once, tying conversions to variants, checking for sample ratio mismatch and reading results, with a TypeScript example on Encore and Postgres.
Run a Dockerized backend on EKS or GKE against RDS or Cloud SQL: the manual setup, what you still own, and how infrastructure from code removes most of it.
Seven alternatives to Port, from open source portals to scorecard tools, ranked by how much you still have to build before a developer can ship a new service with a database.
A docker-compose.yml describes an app, a database, a cache and a worker on one machine. AWS splits those into separate managed services, and this guide covers four ways to make that move.