// Articles

Guides and deep dives

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

Filter by category: Guides (271)
Amazon Kinesis Data Streams with Terraform: On-Demand, Encryption and Consumers

Create an on-demand Kinesis stream with a customer-managed KMS key, a seven-day retention period, a registered enhanced fan-out consumer, producer and consumer IAM, and an iterator-age alarm, then the same fan-out job as a topic in Encore.

9 Min Read
Returns and RMA Backend: Request, Label, Inspect and Refund Once

Design the RMA state machine, partial returns, refund versus store credit, inspection and restocking, idempotent refunds, carrier label webhooks and fraud checks, then implement the flow in TypeScript.

26 Min Read
Lab Results Backend: Receive Results, Flag Critical Values, Release to Patients

Accept result messages from a lab, keep the original, store observations once per revision, alert the ordering clinician about critical values, escalate when nobody acknowledges them, and release reviewed reports to the patient portal, built by hand on AWS and in Go with Encore.

14 Min Read
Subscription Dunning Backend: Retry Failed Payments and Suspend Access

Turn failed subscription payments into a retry schedule, customer emails and an access check: idempotent webhook handling, a retry job that cannot charge twice, and suspension after the last retry, built by hand on AWS and in TypeScript with Encore.

11 Min Read
Google Secret Manager with Terraform: Secrets, Versions and Access

Manage Google Secret Manager with Terraform while keeping values out of state: google_secret_manager_secret, write-only secret_data_wo with an ephemeral password, per-secret IAM for a Cloud Run service, replication and rotation, and how Encore declares secrets in Go code.

8 Min Read
How to Access Cloud Storage From Cloud Run

Give a Cloud Run service read and write access to one Cloud Storage bucket: a dedicated service account, a bucket-level role instead of Editor, a Go client with no key file, and how Encore sets up the bucket and the service identity from Go code.

9 Min Read
How to Migrate Upstash Redis to Amazon ElastiCache

Move sessions and cached data from Upstash's serverless Redis to ElastiCache in your own AWS account, keeping remaining TTLs and leaving short-lived keys behind.

7 Min Read
SQS Dead-Letter Queues: Redrive Policy, maxReceiveCount and Redrive

How SQS dead-letter queues work, how to configure them in Terraform with alarms and redrive, the retention trap, and how Encore sets up retries and dead-lettering per subscription.

7 Min Read
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