// Articles

Guides and deep dives

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

Filter by category: All (674)
API Rate Limiting: Algorithms, Headers and a Working Implementation

How fixed window, sliding window, token bucket and leaky bucket limiters work, what to return when a client is over the limit, and how to enforce one limit across every instance of a TypeScript API.

6 Min Read
How to Write Go Integration Tests Against PostgreSQL

Testing Go database code against a real Postgres instead of mocks: Testcontainers, template databases with pgtestdb, a shared Compose database, and encore test with a fully migrated database per test.

6 Min Read
How to Run PostgreSQL Locally for Development

Four ways to get a local Postgres for your app: started automatically by Encore, Docker Compose, Homebrew or Postgres.app, and Testcontainers, with the PostgreSQL 18 Docker volume change that loses data if you miss it.

6 Min Read
How to Handle GitHub Webhooks in a TypeScript API

Verifying X-Hub-Signature-256 over the raw body, answering within GitHub's 10-second limit, deduplicating redeliveries by X-GitHub-Delivery and doing the work from a queue, with tested code that deploys to your own AWS or GCP account.

6 Min Read
How to Handle Stripe Webhooks in a Go API

Verifying the Stripe-Signature header with stripe-go, avoiding the API version mismatch error, acknowledging fast and deduplicating retries, with tested code that deploys to your own AWS or GCP account.

6 Min Read
Google Cloud Functions Alternatives in 2026

Options for teams whose Cloud Run functions have grown into a backend, compared on time limits, local development, databases and queues, and where the code runs.

6 Min Read
PocketBase Alternatives in 2026: When a Single Binary Is Not Enough

Backends for teams that started on PocketBase, compared on database, scaling, extensibility in Go and TypeScript, and where the backend runs.

6 Min Read
BullMQ Alternatives in 2026: Background Jobs Without Running Redis

Job queues and workflow tools for Node.js and TypeScript teams, compared on what they run on, how retries and scheduling work, and what you operate in production.

6 Min Read
CDKTF Alternatives in 2026: Where to Go After CDK for Terraform

HashiCorp deprecated CDK for Terraform in December 2025. These are the options for teams that still want infrastructure in a programming language, compared on migration effort, scope and day-to-day workflow.

6 Min Read
Supabase vs Firebase: Which Backend Platform Fits Your App in 2026

How Supabase and Firebase differ on data model, queries, auth, functions, pricing and lock-in, and when a backend in your own cloud account is the better fit.

5 Min Read
AWS CDK vs CloudFormation: Which Should Define Your AWS Infrastructure

How the AWS CDK and plain CloudFormation templates differ on language, abstraction, deploys, drift and day-to-day changes, and what it looks like to skip both for application infrastructure.

5 Min Read
How to Connect ECS Fargate to ElastiCache Redis

Reaching an ElastiCache Redis or Valkey cache from Fargate tasks: subnets and security groups, TLS and AUTH, cluster mode clients, and a cache declared in code that Encore provisions in your own AWS account.

6 Min Read