// Articles

Guides and deep dives

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

Filter by category: All (965)
How to Set Up AWS Billing Alerts and Budgets

The three ways AWS can warn you about spend, AWS Budgets, the EstimatedCharges CloudWatch alarm and Cost Anomaly Detection, how to set each one up from the CLI, and how cost allocation tags turn one account bill into per-environment budgets.

5 Min Read
Stream a Large CSV Export from a Postgres-Backed API

Exporting a million rows as CSV should not load them into memory. How to stream rows from Postgres with keyset pagination and a cursor, write CSV as you go, handle timeouts and proxies, and when to build the file in the background instead, in Go with Encore.

4 Min Read
The Scatter-Gather Pattern in Backend Services

Scatter-gather sends one request to several services in parallel and combines the answers. How to set timeouts, handle partial results and failures, and choose between direct calls and messaging, with a TypeScript price comparison example on Encore.

4 Min Read
Build a Real Estate Listing Sync Backend

Build the backend that keeps property listings in sync with an MLS or partner feed: incremental pulls by modification timestamp, upserts that tolerate re-delivery, photo copying to your own bucket, status changes, removals and change events for search and alerts. In TypeScript on Postgres.

5 Min Read
The Priority Queue Pattern: Urgent Jobs Without Starving the Rest

A priority queue lets urgent jobs jump ahead of bulk work. Why SQS and Pub/Sub have no built-in priorities, how separate queues or topics with weighted consumers solve it, how to avoid starvation, and a Go example on Encore with two topics.

4 Min Read
Optimistic vs Pessimistic Locking in Postgres APIs

Optimistic locking checks a version at write time and retries on conflict, while pessimistic locking holds a row lock with SELECT FOR UPDATE. How each works in Postgres, what they cost under contention, how to expose conflicts over HTTP, and a TypeScript example with both.

5 Min Read
Build a Warehouse Picking Backend: Wave Planning and Pick Tasks

Build the backend that turns customer orders into pick tasks for warehouse workers: grouping orders into waves by carrier cutoff, ordering picks along the aisle path, claiming tasks without duplicates, confirming scans, handling short picks and updating inventory. In TypeScript on Postgres.

6 Min Read
Build an Image Resizing Service with Object Storage and Pub/Sub

Resize uploads in the background instead of in the request: upload originals to a private bucket, publish an event, generate thumbnails in a subscriber and serve them from a public bucket. A Go example with Encore, plus when to use on-the-fly resizing instead.

4 Min Read
Generate PDFs in a Backend Service and Store Them in a Bucket

How to generate invoices, receipts and reports as PDFs on the server: choosing a library over a headless browser, running generation off the request path, storing results in a private bucket and serving them through signed URLs, with a TypeScript example on Encore.

4 Min Read
Google Cloud Storage Resumable Uploads for Large Files

Resumable uploads let a client send a large file in chunks and continue after a dropped connection. How a session URI works, how to create one in Node.js, how the client sends and resumes chunks, CORS, and when a plain signed URL is enough, with an Encore example.

5 Min Read
Build a Wire Transfer Approval Backend with Maker-Checker Rules

Build the approval workflow behind outgoing wires: a maker creates the request, one or more checkers approve it under dual-control rules, limits decide how many approvals are needed, every step is recorded, and an approved wire is released once. In Go on Postgres.

6 Min Read
ECS Fargate Spot: When It Is Safe and How to Set It Up

Fargate Spot runs tasks on spare AWS capacity at a discount, and can reclaim them with a two-minute warning. Which workloads suit it, how to mix on-demand and Spot with a capacity provider strategy in Terraform, and how to handle the interruption signal in code.

4 Min Read