// Articles
Guides, tutorials, and comparisons to help you build better backend applications.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.