// Articles
Guides, tutorials, and comparisons to help you build better backend applications.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.