// Articles

Guides and deep dives

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

Filter by category: All (654)
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

Five 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.

11 Min Read
PHI Access Audit Log: Record Who Viewed Which Patient Record

Design the audit log behind a healthcare API: log every read of patient data in the same transaction that returns it, include denied and break-glass access, make the table append-only in Postgres, answer access-history questions and purge only after the retention period, with the data in your own AWS account.

11 Min Read
Freight Quote and Booking Backend: Carrier Rates, Expiring Quotes and Bills of Lading

Design the backend behind instant freight quotes: parallel carrier rate calls with per-carrier API keys, quotes that expire, a booking step that cannot double book or book a stale price, confirmation events, and bills of lading stored in your own bucket, built by hand on AWS or in TypeScript with Encore.

13 Min Read
Payment Reconciliation Backend: Match Settlements Against Your Ledger

Load the payment provider's daily settlement report, keep the original file, match each line against the payments your webhooks recorded, and flag missing or mismatched transactions with a job that is safe to rerun.

13 Min Read
ECS Service Discovery: Cloud Map, Service Connect or an Internal ALB

How one Amazon ECS service finds another: Cloud Map DNS records, Service Connect short names through a managed proxy, and an internal Application Load Balancer, with Terraform for each, the failure modes that come with them, and how Encore handles service-to-service calls in code.

11 Min Read
Inventory Reservation Backend for Ecommerce Checkout

Hold stock while a customer pays without overselling: an available-stock check in one Postgres UPDATE, per-cart reservations that are safe to retry, holds that expire, and release on payment failure through Pub/Sub with a cron sweep behind it.

12 Min Read
IAM Roles with Terraform: Trust Policies and Assume Role for an App Service

Terraform for the IAM role an application service runs as: a trust policy with confused deputy conditions, a scoped inline policy, a shared managed policy, a permissions boundary, exclusive policy management to catch console drift, and a cross-account role the service assumes, plus how Encore handles service roles.

12 Min Read
How to Access S3 From ECS Fargate

Give a Fargate task read and write access to one S3 bucket: the task role policy, a bucket policy that only accepts TLS and VPC endpoint traffic, a gateway endpoint that keeps S3 traffic off the NAT gateway, and how Encore sets up the bucket and the service role from Go code.

10 Min Read
EventBridge Scheduler with Terraform: Cron, One-Time Schedules, IAM and Retries

Terraform for EventBridge Scheduler: a schedule group, an execution role with confused deputy protection, cron and rate schedules in a time zone, flexible time windows, Lambda and SQS targets, retries and a dead-letter queue, one-time at() schedules, and how Encore runs scheduled jobs from code.

9 Min Read
How to Migrate Railway Redis to Amazon ElastiCache

Move the data in a Railway Redis service to ElastiCache in your own AWS account, either by copying keys lazily on first read while both run, or by seeding a new cluster from an RDB snapshot during a write freeze.

10 Min Read
Memorystore for Redis with Terraform: Private Access, AUTH, TLS and Cloud Run

Terraform for a Standard Tier Memorystore for Redis instance on private services access, with AUTH, in-transit encryption, read replicas and persistence, the AUTH string in Secret Manager, and a Cloud Run service that reaches it through Direct VPC egress, plus how Encore provisions Memorystore from code.

10 Min Read