// Articles

Guides and deep dives

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

Filter by category: Guides (271)
How to Deploy from GitHub Actions to AWS Without Long-Lived Keys

Replacing AWS access keys in GitHub secrets with OIDC federation and a scoped IAM role, compared with letting Encore deploy through a role in your account, and the same pattern for Google Cloud.

5 Min Read
How to Deploy Flask to Google Cloud Run

Getting a Flask app onto Cloud Run with Cloud SQL Postgres, a secret key in Secret Manager and a non-root container, using Encore, the gcloud CLI or Terraform.

6 Min Read
How to Deploy Django to Google Cloud Run

Getting a Django app onto Cloud Run with Cloud SQL Postgres, a secret key from Secret Manager and a non-root container, using Encore, the gcloud CLI or Terraform.

6 Min Read
How to Deploy Actix Web to AWS

Running an Actix Web 4 API on AWS with RDS Postgres and a Secrets Manager key, using Encore, the AWS CDK or Terraform, with a non-root container and every IAM grant spelled out.

6 Min Read
How to Add Secrets to a FastAPI App

Managing API keys and webhook signing secrets in FastAPI with Encore, pydantic-settings, AWS Secrets Manager or Google Secret Manager, with per-environment values and nothing in git.

5 Min Read
How to Add Secrets to a Django App

Keeping SECRET_KEY and API keys out of Django settings with Encore, django-environ, AWS Secrets Manager or Google Secret Manager, with local values and per-environment storage.

5 Min Read
How to Add Secrets to an Axum App

Managing API keys, webhook signing keys and JSON credentials in an Axum 0.8 app with Encore, dotenvy with secrecy, AWS Secrets Manager or Google Secret Manager.

6 Min Read
How to Add Redis to a Flask App

Caching responses and rate limiting logins in Flask with Encore, redis-py, Flask-Caching and Flask-Limiter, with expiries that cannot leak keys and a Redis that runs locally.

6 Min Read
How to Add Redis to a Django App

Caching Django model reads in Redis with Encore, Django's built-in Redis cache backend, django-redis or redis-py, with invalidation on write and a Redis that runs locally.

5 Min Read
How to Add Redis to an Actix Web App

Caching responses and rate limiting logins in an Actix Web 4 app with Encore, the redis crate, deadpool-redis or actix-limitation, with atomic counters and a Redis that runs locally.

6 Min Read
How to Add Pub/Sub to a Flask App

Publishing events from Flask routes and handling them in subscribers with Encore, RQ, Celery or Blinker signals, with idempotent handlers, retries and a broker that runs locally.

6 Min Read
How to Add Postgres to an Actix Web App

Connecting an Actix Web 4 app to PostgreSQL with Encore, SQLx, Diesel or deadpool-postgres, with migrations, transactions and a database that runs locally.

6 Min Read