// Articles

Guides and deep dives

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

Filter by category: All (674)
Amazon RDS with Terraform: Postgres, Subnets, Security Groups and Parameter Groups

Concrete Terraform for an RDS PostgreSQL instance with a DB subnet group, security group, parameter group and Secrets Manager password, the networking and state pain that comes with it, and how Encore provisions the same application database from code.

7 Min Read
How to Implement Server-Sent Events (SSE) in Node.js

Stream events from a Node.js HTTP handler with the right headers, heartbeats and reconnects, contrast briefly with WebSockets, and run the same pattern as an Encore TypeScript raw endpoint next to a Postgres database.

7 Min Read
AWS Lambda with TypeScript in 2026: Setup, Bundling and Cold Starts

How to run TypeScript on AWS Lambda with Node.js 22 or 24, bundle with esbuild, cut cold starts, choose ESM or CommonJS, and when an always-on TypeScript API on your own AWS account is a better fit.

7 Min Read
Horizontal Scaling for Backends: Stateless Services, Sessions and Databases

Horizontal scaling means adding more copies of a service behind a load balancer. What has to be stateless, where sessions and sticky routing fit, why the database becomes the bottleneck, and how Encore services scale as units in your own cloud while databases, queues and object storage stay managed primitives.

6 Min Read
GitLab CI/CD in 2026: Pipelines, Runners and Deploying a Backend

GitLab CI/CD runs jobs defined in .gitlab-ci.yml on shared or project runners. How pipelines, stages and environments work, and how to deploy an Encore backend from a GitLab job using the platform API or encore build docker.

9 Min Read
GitHub Actions Alternatives in 2026: CI/CD Options Beyond Actions

GitHub Actions is the default CI for repos on GitHub. When teams look beyond it, GitLab CI, CircleCI, Buildkite, Jenkins and Tekton are the usual picks. How they compare, and how infrastructure from code shrinks the deploy stage while you keep your CI.

7 Min Read
Deno vs Node.js in 2026: Which Runtime Fits Your Backend?

Deno and Node.js both run JavaScript and TypeScript on the server. How they differ on permissions, npm compatibility, TypeScript, tooling and deploy targets, and when to pick each for a backend.

7 Min Read
CI/CD Pipeline in 2026: Stages, Tools and a Working Backend Example

What a CI/CD pipeline does in 2026, how build, test and deploy stages fit together, how GitHub Actions, GitLab CI, CircleCI and Jenkins compare, and how a backend with infrastructure declared in code plugs into any of them.

6 Min Read
Canary Deployments: How to Roll Out Backend Changes Safely

A canary deployment sends a small slice of traffic to a new backend version, watches metrics, then promotes or rolls back. How it differs from blue-green, how CodeDeploy and Kubernetes progressive delivery do it, and how Encore fits without claiming built-in traffic splitting.

6 Min Read
Blue-Green Deployment: How It Works and When to Use It for Backends

Blue-green deployment keeps two production environments and switches traffic at once for fast rollback. How the pattern works on ALB weighted target groups, ECS and Kubernetes, when it beats rolling deploys, and where Encore fits for backends.

6 Min Read
AWS SQS with Lambda in 2026: Event Source Mapping, Retries and DLQs

How Lambda polls Amazon SQS, how batch size and partial batch failure work, how visibility timeouts and dead-letter queues interact, the IAM you need, and how to get the same queue pattern from TypeScript without managing the event source mapping.

6 Min Read
AWS Scaling for Backends: Auto Scaling, Target Tracking and Cost Control

How EC2 Auto Scaling groups, ECS service auto scaling, target tracking and scheduled scaling work for a backend, where cost leaks, and how to run services that scale in your own AWS account from application code.

7 Min Read