// Articles

Guides and deep dives

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

Filter by category: Guides (476)
Buy Now, Pay Later Backend: Installment Plans, Collections and Retries

Design the backend behind pay-in-four installments: exact schedules in integer cents, a daily collection run, charges that cannot double under retries and crashes, decline retries, delinquency and events for reminders, then build it in TypeScript with Encore.

10 Min Read
Fix "Essential container in task exited" on ECS

What the ECS stopped reason "Essential container in task exited" means, how to find the exit code and logs before the task disappears, and what exit codes 1, 137, 139 and 143 usually point to on Fargate.

6 Min Read
Ecommerce Sales Tax Backend: Quotes, Commits, Refunds and Thresholds

Design the backend that charges the right sales tax or VAT at checkout: quotes from a tax provider cached per cart, the tax recorded exactly as charged when the order is paid, refunds that reverse it, and per-jurisdiction totals for registration thresholds, then build it in TypeScript with Encore.

9 Min Read
Use Amazon SNS from Python

Publish messages with boto3, add message attributes and batch publishes, fan out to SQS queues with filter policies, read SNS envelopes in a consumer, and test the whole flow locally with moto.

6 Min Read
Use Amazon SNS from Go

Publish messages to SNS with the AWS SDK for Go v2, add message attributes, batch publishes and FIFO settings, fan out to SQS consumers, and see how typed topics in Go replace the setup.

7 Min Read
Read AWS Secrets Manager Secrets in Python

Fetch secrets with boto3, parse JSON secrets, cache values between requests, handle rotation and access errors, inject secrets into ECS tasks, and test locally with moto.

6 Min Read
Fix "Missing Region" Errors in the AWS SDK

What "Region is missing", "NoRegionError: You must specify a region" and "Invalid Configuration: Missing Region" mean in the JavaScript, Python and Go AWS SDKs, where each SDK looks for a region, and why AWS_REGION alone does not fix boto3.

5 Min Read
Fix "User Is Not Authorized to Perform" AWS IAM Errors

How to read an AWS AccessDenied message, find which policy type blocked the call, test the fix with the IAM policy simulator, and avoid the ARN, KMS and role mix-ups behind most of these errors.

6 Min Read
Fix "The Security Token Included in the Request Is Expired"

Why AWS returns ExpiredToken, how to tell a stale environment variable from an expired SSO session or a role session that outlived its duration, and how to make long-running code refresh credentials on its own.

6 Min Read
Google Cloud Pub/Sub Flow Control and Subscriber Concurrency

How flow control works in the Google Cloud Pub/Sub client libraries, what MaxOutstandingMessages and MaxOutstandingBytes limit, why push subscriptions behave differently, and how to cap concurrency for a handler that calls a rate-limited API.

6 Min Read
How to Write a Dockerfile for a Node.js App

A production Dockerfile for Node.js and TypeScript in 2026: multi-stage builds on node:26-slim, npm ci with production-only dependencies, the node user, PID 1 and SIGTERM, and what to keep out of the image.

5 Min Read
How to Migrate Supabase Edge Functions to AWS

A step-by-step guide to moving Supabase Edge Functions to AWS: what changes when Deno handlers become Node.js code, how to keep verifying Supabase Auth tokens, where background tasks go, and a TypeScript version with the endpoints, queue and database in your own AWS account.

7 Min Read