// Articles

Guides and deep dives

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

Filter by category: All (696)
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
How to Add Object Storage to a Flask App

Handling avatar uploads in Flask with Encore, boto3 and S3, Google Cloud Storage or files on local disk, with size limits, content type checks and short-lived signed URLs.

6 Min Read
How to Add Object Storage to an Actix Web App

Storing user uploads from an Actix Web 4 app in S3 or Cloud Storage with Encore, the AWS SDK for Rust, the object_store crate or local disk, with size limits and signed URLs.

6 Min Read
How to Add Cron Jobs to a Flask App

Scheduling a daily report from a Flask app with Encore, Flask-APScheduler, rq-scheduler or Google Cloud Scheduler, with jobs that are safe to run twice.

5 Min Read
How to Add Cron Jobs to a Django App

Running scheduled work like session cleanup from a Django project with Encore, Celery beat, APScheduler or a system crontab, with idempotent jobs and one run per schedule.

6 Min Read
Go Chi Tutorial: Routing, Middleware and a REST API

Build a small JSON API with the chi router: routes, URL parameters, middleware, sub-routers and handlers you can test with curl.

8 Min Read