// Articles

Guides and deep dives

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

Filter by category: All (696)
How to Migrate a Django App from Heroku to AWS

Moving a Django app's web dyno, worker, Heroku Postgres, config vars and Scheduler jobs to your own AWS account, with Encore or with ECS, RDS and Terraform, and copying the data across with pg_dump.

8 Min Read
How to Add S3 File Uploads to a Django App

Storing user files from Django in S3 or Google Cloud Storage with Encore, django-storages or boto3 presigned URLs, with direct browser uploads, private buckets, CSRF and local testing.

7 Min Read
How to Add Pub/Sub to a Django App

Publishing events from Django views and handling them in subscribers with Encore, Django 6's Tasks framework, Celery or Django signals, with idempotent handlers, transactions and CSRF covered.

8 Min Read
How to Deploy a Flask App to AWS

Running Flask with Postgres and S3 on AWS with Encore, Elastic Beanstalk, ECS on Fargate or Zappa on Lambda, with a production WSGI server, a non-root container and the networking each one needs.

7 Min Read
How to Add Postgres to a Flask App

Connecting a Flask app to PostgreSQL with Encore, Flask-SQLAlchemy with Flask-Migrate, or psycopg 3 with a connection pool, plus migrations, local databases and production.

7 Min Read
How to Deploy FastAPI to Google Cloud Run

Shipping a FastAPI app with Postgres and Pub/Sub to Cloud Run with Encore, gcloud run deploy from source, or a Dockerfile with Cloud Build, Artifact Registry and Cloud SQL.

7 Min Read
How to Add Pub/Sub to a FastAPI App

Publishing events from FastAPI and handling them in subscribers with Encore, FastAPI BackgroundTasks, Celery or SNS and SQS with boto3, with retries, idempotency and local testing.

7 Min Read
How to Add Redis to a FastAPI App

Caching, rate limiting and leaderboards in FastAPI with Encore, redis-py's asyncio client or fastapi-cache2, plus local Redis, expiry and production on AWS or GCP.

8 Min Read
Axum vs Poem

How Axum and Poem compare on handlers, extractors, OpenAPI generation, middleware and ecosystem, with the same endpoint written in each.

4 Min Read
Axum vs Warp

How Axum and Warp compare on routing, filters and extractors, middleware, error handling and compile times, with the same endpoint written in each.

5 Min Read
Flask vs Quart

Quart reimplements the Flask API on asyncio. How the two compare on concurrency, WebSockets, extensions and migration effort, with the same endpoint written in each.

4 Min Read
FastAPI vs Starlette

FastAPI is built on Starlette. How the two compare on validation, API docs, dependency injection and overhead, with the same endpoint written in each.

4 Min Read