// Articles
Guides, tutorials, and comparisons to help you build better backend applications.
How to keep data consistent across services without distributed transactions, with a working Go example that reserves stock, charges a card and rolls back with compensating steps.
A working Node.js WebSocket server with the ws library, heartbeats and broadcasting, then the same chat as a typed Encore streaming endpoint you can run locally and deploy to your own AWS or GCP account.
What the Go team actually recommends for packages, cmd and internal, where the popular project-layout repo fits, and how to structure a Go backend once it has a database, queues and more than one service.
Testing Go database code against a real Postgres instead of mocks: Testcontainers, template databases with pgtestdb, a shared Compose database, and encore test with a fully migrated database per test.
Four ways to get a local Postgres for your app: started automatically by Encore, Docker Compose, Homebrew or Postgres.app, and Testcontainers, with the PostgreSQL 18 Docker volume change that loses data if you miss it.
Verifying X-Hub-Signature-256 over the raw body, answering within GitHub's 10-second limit, deduplicating redeliveries by X-GitHub-Delivery and doing the work from a queue, with tested code that deploys to your own AWS or GCP account.
Verifying the Stripe-Signature header with stripe-go, avoiding the API version mismatch error, acknowledging fast and deduplicating retries, with tested code that deploys to your own AWS or GCP account.
Reaching an ElastiCache Redis or Valkey cache from Fargate tasks: subnets and security groups, TLS and AUTH, cluster mode clients, and a cache declared in code that Encore provisions in your own AWS account.
Injecting Secrets Manager values into Fargate tasks through the task definition, the execution role permissions it needs, why rotated values do not reach running tasks, and when to read secrets at runtime instead.
Four ways to reach an RDS PostgreSQL instance in private subnets from your machine: SSM port forwarding, a bastion with an SSH tunnel, AWS Client VPN, and an access proxy that comes with the database.
The three ways to connect an ECS Fargate service to an RDS Postgres database: security groups with Secrets Manager, RDS Proxy, and IAM database authentication. Plus the setup where the database and its wiring come from your code.
A webhook-based Telegram bot in TypeScript with Postgres, verified with Telegram's secret token header and deployed to your own AWS account.