/backend

Backend / Django

Python backends: patterns, APIs, and the glue between your app and the cloud.

Backend engineering the way I practice it: Python-heavy, database-aware, and biased toward boring, well-understood tools. Articles here cover API design, background jobs, caching, and the operational details that decide whether a service survives its second week in production.

Tutorials

Guides

Project ideas

Idea

Rate limiter middleware for DRF backed by Redis

Token-bucket implementation with per-user and per-IP scopes, atomic Lua scripts on Redis, and a management command to inspect current buckets.

Idea

Celery task deduplication with Redis locks

Decorator that computes a stable task signature and refuses to enqueue a duplicate while an identical job is still pending or running.

Idea

Postgres-backed outbox for reliable event publishing

Write domain events to an outbox table in the same transaction as your business writes; a worker drains the table to SNS or Kafka.

Code & repos