// Articles

Guides and deep dives

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

Filter by category: Guides (271)
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.

11 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
How to Migrate Supabase Postgres to Amazon RDS

Move the Postgres database of a Supabase project into RDS in your own AWS account: dump the public schema, decide what replaces auth.users, RLS policies and Supabase extensions, restore the data and cut over without stray writes.

9 Min Read
Amazon SNS with Terraform: Topics, SQS Subscriptions, Filters and Dead-Letter Queues

Terraform for an encrypted SNS topic with a publisher-only topic policy, one SQS queue per consumer with body filter policies, subscription dead-letter queues and the IAM a publisher needs, plus how Encore provisions SNS and SQS from topics declared in code.

9 Min Read
How to Migrate Heroku Postgres to Google Cloud SQL

Move a Heroku Postgres database to Cloud SQL for PostgreSQL with pg_dump and pg_restore, handle the heroku_ext schema and extensions, swap DATABASE_URL in the app, and cut over with a short write freeze.

8 Min Read
AWS CDK Alternatives in 2026

Six alternatives to AWS CDK, ranked, with current versions, the same orders service in CDK and Encore, and when each one is the better choice.

14 Min Read