Writing
In-depth guides on AI, backend systems, DevOps and the web, newest first. Subscribe via RSS or email.
2026
Deploying Python APIs to Production: Railway, Fly.io, and Render
Learn how to deploy Django and FastAPI applications to production using Railway, Fly.io, and Render. Covers environment variables, databases, and scaling strategies.
10 min readBackend & APIsDevOps & tooling
Building AI Agents with LangChain and FastAPI: A Complete Guide
Learn to build production-ready AI agents using LangChain and FastAPI. Covers tool calling, memory, RAG pipelines, and deploying agentic workflows via REST APIs.
14 min readAI & LLMsBackend & APIs
2025
Dockerizing Django and FastAPI Applications: A Complete Guide
Learn how to containerize Django and FastAPI applications with Docker. Step-by-step guide with best practices for production-ready Docker setups.
5 min readBackend & APIsDevOps & tooling
Redis Caching in Django and FastAPI: A Practical Guide
Learn how to implement Redis caching in Django and FastAPI to dramatically improve API performance. Covers cache invalidation, patterns, and production best practices.
11 min readBackend & APIs
Streaming LLM Responses with FastAPI and Server-Sent Events
Learn how to stream LLM responses token by token with FastAPI and Server-Sent Events, handle disconnects and errors, and consume the stream from a web frontend.
9 min readAI & LLMsBackend & APIs
Implementing Real-Time Features with WebSockets in FastAPI and Django
Learn how to build real-time applications using WebSockets. Implement chat, notifications, live updates, and more with FastAPI and Django Channels.
8 min readBackend & APIs
Building RESTful APIs with FastAPI: Best Practices and Patterns
Learn best practices for building production-ready RESTful APIs with FastAPI. Covering architecture, error handling, validation, documentation, and security.
9 min readBackend & APIs
Setting Up CI/CD Pipelines with GitHub Actions for Django and FastAPI
Learn how to build robust CI/CD pipelines using GitHub Actions for Django and FastAPI applications. Automate testing, linting, and deployment workflows.
8 min readBackend & APIsDevOps & tooling
Monitoring and Observability for Python APIs: A Complete Guide
Learn how to implement comprehensive monitoring, logging, and observability for Django and FastAPI applications using modern tools and best practices.
8 min readBackend & APIsDevOps & tooling
Building a RAG Pipeline for LLMs with FastAPI and pgvector
Learn how to build a production-ready RAG pipeline with FastAPI, PostgreSQL and pgvector: chunking, embeddings, hybrid retrieval and grounded LLM answers.
11 min readAI & LLMsBackend & APIs
Understanding Async Programming in Python: A Comprehensive Guide
Master async/await in Python with practical examples. Learn how to write efficient asynchronous code for web APIs, I/O operations, and concurrent tasks.
7 min readBackend & APIs
Building an AI-Powered Code Generator with OpenAI API: A Complete Guide
Learn how to build a custom AI code generator using OpenAI API, FastAPI, and React. Create your own GitHub Copilot alternative with step-by-step implementation.
8 min readAI & LLMsBackend & APIs
Database Connection Pooling in FastAPI with SQLAlchemy
A deep dive into connection pooling in FastAPI using SQLAlchemy for optimal database performance and scalability.
2 min readBackend & APIs
Testing APIs in Django and FastAPI: Best Practices and Tools
A practical guide to testing APIs built with Django and FastAPI using Pytest, coverage reports, schema validation, and more.
3 min readBackend & APIsDevOps & tooling
Rate Limiting and Throttling in Django and FastAPI
A practical guide to implementing rate limiting and request throttling in Django and FastAPI to prevent abuse and enhance security.
2 min readBackend & APIs
Using Background Tasks for Heavy Operations in FastAPI
Learn how to offload non-blocking tasks like sending emails and generating reports using background tasks in FastAPI.
2 min readBackend & APIs
How to Prevent N+1 Query Problems in Django & FastAPI
A deep dive into the N+1 query problem, why it occurs, and how to prevent it efficiently in Django and FastAPI.
2 min readBackend & APIs
JWT Authentication in Django & FastAPI: A Secure Implementation Guide
A detailed guide on implementing JWT authentication in Django and FastAPI for secure, token-based authentication.
2 min readBackend & APIs
Building a High-Performance Async API with FastAPI and PostgreSQL
Learn how to build a scalable, asynchronous API using FastAPI and PostgreSQL. This guide covers setup, database integration, and efficient query handling.
2 min readBackend & APIs
Building Your First API with Django: A Beginner's Guide
A beginner-friendly guide to building your first API with Django and Django REST Framework.
2 min readBackend & APIs