// Articles
Guides, tutorials, and comparisons to help you build better backend applications.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
How Cloud Run jobs and Cloud Run services differ on triggers, timeouts, retries, parallelism, scaling and billing, which one fits batch work, scheduled tasks and APIs, and how Encore runs scheduled batches on Cloud Run services with cron and Pub/Sub.