// Articles

Guides and deep dives

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

Filter by category: All (965)
Build an Ecommerce Checkout Backend: Carts, Stock Holds and Payments

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.

7 Min Read
Run Delayed and Scheduled Jobs in a Backend Without a Job Server

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.

5 Min Read
Cloud Run CPU Allocation: Request-Based vs Instance-Based

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.

4 Min Read
The Claim Check Pattern for Large Messages

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.

4 Min Read
Backpressure in Message Queues: Keeping Consumers From Falling Over

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.

4 Min Read
Envelope Encryption with AWS KMS in Node.js

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.

6 Min Read
The Asynchronous Request-Reply Pattern for Long-Running APIs

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.

5 Min Read
The Anti-Corruption Layer Pattern for Third-Party APIs

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.

4 Min Read
A/B Testing in a Backend: Assignment, Exposure Logging and Results

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.

5 Min Read
How to Deploy a Backend to Your Own Kubernetes Cluster with Managed 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.

10 Min Read
Port Alternatives in 2026

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.

11 Min Read
How to Deploy a Docker Compose App to AWS in 2026

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.

9 Min Read