Writing

Engineering, in depth

Practical, production-grade writing on backend systems, FastAPI, AI/LLM engineering, and the bugs worth understanding.

python 56 fastapi 56 backend 21 backend-architecture 16 ai 14 rag 11 async 10 tutorial 8
Event Driven Architecture vs REST API: Production Trade-offs
backend-architecture event-driven

Event Driven Architecture vs REST API: Production Trade-offs

Comparing event driven architecture vs REST API for backend systems covering latency, coupling, and migration strategies from production experience.

7 min read
AI Generated Code Review Pipeline That Catches Real Bugs
ai-code-review ci-cd

AI Generated Code Review Pipeline That Catches Real Bugs

Build an AI generated code review pipeline with static analysis, security scanning, and LLM context to reduce defects without slowing down your team.

7 min read
Fix Claude Code Error Editing File in Production
claude-code ai-debugging

Fix Claude Code Error Editing File in Production

Learn why the claude code error editing file happens and how to fix permissions, sandbox limits, and large file issues with practical debugging steps.

5 min read
Qdrant Python query_points: Filters, Hybrid Search & Tuning
qdrant vector-database

Qdrant Python query_points: Filters, Hybrid Search & Tuning

Learn how to use qdrant python query_points for filtered vector search, hybrid sparse-dense queries, and production HNSW tuning with real code examples.

5 min read
Build a Production FastAPI Backend with Bolt.new
fastapi bolt.new

Build a Production FastAPI Backend with Bolt.new

Learn how to build a production FastAPI backend with Bolt.new including async SQLAlchemy, JWT auth, Docker multi-stage builds, and Cloud Run deployment.

7 min read
gRPC Python Tutorial
grpc python

gRPC Python Tutorial

This gRPC Python tutorial covers Protobuf schema design, all four RPC types, interceptors, FastAPI integration, TLS setup, and common production pitfalls.

8 min read
Kafka Python Producer Example for FastAPI Production Systems
kafka python

Kafka Python Producer Example for FastAPI Production Systems

This Kafka Python producer example shows async patterns, idempotent transactions, and FastAPI lifespan integration for production workloads.

6 min read
Event Driven Architecture vs Pub Sub: Core Differences
event-driven-architecture pub-sub

Event Driven Architecture vs Pub Sub: Core Differences

Understand the core differences between event driven architecture vs pub sub including coupling models, delivery guarantees, and when to choose each pattern.

7 min read
LangGraph vs LangChain: Architecture, State, and Migration
langgraph langchain

LangGraph vs LangChain: Architecture, State, and Migration

Compare LangGraph vs LangChain on architecture, state management, and multi-agent orchestration to choose the right framework for production AI systems.

8 min read
MCP Server vs Skills: Architecture Trade-offs
mcp model-context-protocol

MCP Server vs Skills: Architecture Trade-offs

Comparing MCP server vs skills reveals key differences in tool invocation, security, and interoperability for production LLM systems.

6 min read
MCP Server Stands For Model Context Protocol Explained
mcp model-context-protocol

MCP Server Stands For Model Context Protocol Explained

Learn what MCP server stands for and how the Model Context Protocol standardizes LLM tool integration with a practical FastAPI implementation guide.

8 min read
Database Indexing Strategies That Work in Production
postgresql database-optimization

Database Indexing Strategies That Work in Production

Learn practical database indexing strategies for PostgreSQL including B-Tree vs GIN selection, composite column ordering, partial indexes, and monitoring.

7 min read
Vibe Coding Cleanup Specialist Fix AI-Generated Code Issues
ai-code-review refactoring

Vibe Coding Cleanup Specialist Fix AI-Generated Code Issues

A vibe coding cleanup specialist explains how to fix AI-generated code issues using systematic audits and automated refactoring for production reliability.

7 min read
pgvector HNSW Index Tuning for Production Workloads
pgvector hnsw

pgvector HNSW Index Tuning for Production Workloads

Learn how to tune pgvector HNSW indexes for recall and speed with practical benchmarks and production lessons on concurrent creation and maintenance.

6 min read
OpenAI Agents SDK vs Google ADK: Production Comparison
ai-agents python

OpenAI Agents SDK vs Google ADK: Production Comparison

A production comparison of OpenAI Agents SDK vs Google ADK covering architecture, tool calling, state management, and observability trade-offs for backend.

8 min read
Vibe Coding vs Agentic Coding: When to Use Which
ai-assisted-development agentic-workflows

Vibe Coding vs Agentic Coding: When to Use Which

This guide explains vibe coding vs agentic coding: when to use which approach based on project complexity, risk tolerance, and production requirements.

7 min read
MCP Server vs API: When to Use Each for LLM Tooling
mcp model-context-protocol

MCP Server vs API: When to Use Each for LLM Tooling

Compare MCP server vs API for LLM tooling covering transport, auth, schema discovery, and production trade-offs.

7 min read
Vibe Coding vs Agentic Coding: When to Use Which
vibe-coding agentic-coding

Vibe Coding vs Agentic Coding: When to Use Which

Understand vibe coding vs agentic coding: when to use which approach for production systems based on scope, maturity, and team expertise.

7 min read
RAG Pipeline vs MCP: Architecture Trade-offs for Production
rag mcp

RAG Pipeline vs MCP: Architecture Trade-offs for Production

Compare RAG pipeline vs MCP architectures to understand key trade-offs and choose the right pattern for your production workload.

9 min read
MCP Architecture: The 3 Core Components Explained
mcp model-context-protocol

MCP Architecture: The 3 Core Components Explained

Learn the three main components of MCP architecture - Host, Client, and Server - and how they enable secure, scalable AI tool integration.

9 min read
Qdrant Python Search: Filters, Hybrid Vectors & Tuning
qdrant vector-search

Qdrant Python Search: Filters, Hybrid Vectors & Tuning

Master Qdrant Python search with practical examples for filtering, hybrid dense/sparse vectors, pagination, and HNSW tuning.

6 min read
Model Context Protocol Advanced Topics for Production
mcp model-context-protocol

Model Context Protocol Advanced Topics for Production

This guide covers model context protocol advanced topics including OAuth 2.1 auth, streaming in FastAPI, and schema versioning for production MCP servers.

8 min read
Event Driven Architecture vs Request Response: Trade-offs
event-driven-architecture system-design

Event Driven Architecture vs Request Response: Trade-offs

Comparing event driven architecture vs request response patterns for backend systems covering coupling, latency, error handling, and AI workflow fit.

8 min read
Build a Production FastAPI Backend with Bolt.new
bolt.new fastapi

Build a Production FastAPI Backend with Bolt.new

Scaffold a production-ready FastAPI backend using Bolt.new. Add SQLAlchemy models, authentication, and deploy with confidence.

9 min read
LangGraph vs CrewAI: Production Trade-offs for Multi-Agent
langgraph crewai

LangGraph vs CrewAI: Production Trade-offs for Multi-Agent

This guide compares LangGraph vs CrewAI for production multi-agent systems, covering state management, debugging, and when to choose each framework.

7 min read
Kafka Python vs Confluent Kafka: Production Benchmarks
kafka python

Kafka Python vs Confluent Kafka: Production Benchmarks

Compare kafka python vs confluent kafka on throughput latency and operational maturity with real production benchmarks and a migration guide.

7 min read
Using the Qdrant Python Client with FastAPI
qdrant vector-database

Using the Qdrant Python Client with FastAPI

Learn to use the Qdrant Python client in production with FastAPI covering async setup, hybrid search, quantization, and connection pooling.

9 min read
FastAPI Async Lifespan: Startup, Shutdown & Cleanup Patterns
fastapi async

FastAPI Async Lifespan: Startup, Shutdown & Cleanup Patterns

Learn production-ready FastAPI lifespan patterns to manage startup, shutdown, and resource cleanup with async context managers.

6 min read
Hybrid Search RAG Over Internal Docs: Production Guide
rag hybrid search

Hybrid Search RAG Over Internal Docs: Production Guide

Learn how to implement hybrid search RAG over internal docs with Elasticsearch and pgvector, including architecture, code, and production trade-offs.

5 min read
AI Agent Python Code Example for FastAPI and OpenAI SDK
ai agents python

AI Agent Python Code Example for FastAPI and OpenAI SDK

A practical ai agent python code example using FastAPI and OpenAI SDK, covering tool use, async state, Docker deployment, and production pitfalls.

7 min read
Microservices Python Example: Real Patterns for Production
microservices python

Microservices Python Example: Real Patterns for Production

A practical microservices python example with FastAPI, Docker, and production lessons on structure, communication, and monitoring.

5 min read
How to Evaluate RAG Chunk Quality: Metrics That Matter
rag llm

How to Evaluate RAG Chunk Quality: Metrics That Matter

Learn which criteria and metrics reveal chunking effectiveness in RAG pipelines, with Ragas benchmarks and production trade-offs.

5 min read
RAG Chunking Techniques for Tabular Data in Production
rag chunking

RAG Chunking Techniques for Tabular Data in Production

Learn effective RAG chunking techniques for tabular data including CSV, Excel, and Parquet files, with production-tested strategies and code examples.

6 min read
Build a FastAPI Backend with Google Gemini AI
gemini ai app builder

Build a FastAPI Backend with Google Gemini AI

Integrate Gemini into FastAPI with RAG, handle rate limits, and deploy to Cloud Run. A practical guide to production-ready AI backends.

6 min read
FastAPI Async Dependency: Practical Patterns for Production
fastapi async

FastAPI Async Dependency: Practical Patterns for Production

Learn how to define async dependencies in FastAPI with real examples for database sessions, context managers, and testing - plus performance trade-offs.

5 min read
Message Queue Implementation in Python: Redis to Sockets
python message-queue

Message Queue Implementation in Python: Redis to Sockets

A practical guide to message queue implementation in Python, covering Redis, custom sockets, Celery, and production trade-offs for backend engineers.

7 min read
Fix AI Generated Code: Practical Steps for Backend Engineers
ai-generated-code fastapi

Fix AI Generated Code: Practical Steps for Backend Engineers

Learn how to fix AI generated code vulnerabilities, logic errors, and security flaws in FastAPI and Python systems with real production examples.

7 min read
Postgres Performance Tuning Best Practices for Backends
postgres performance

Postgres Performance Tuning Best Practices for Backends

Practical postgres performance tuning best practices for production systems, covering config, indexing, monitoring, and scaling with real examples.

4 min read
RAG Chunking Best Practices for Production Systems
rag chunking

RAG Chunking Best Practices for Production Systems

Learn proven RAG chunking best practices for LLMs - optimal size, overlap, tabular data, evaluation, and tools - based on real production experience.

6 min read
FastAPI Message Queue with Python Multiprocessing
python multiprocessing

FastAPI Message Queue with Python Multiprocessing

Build a FastAPI message queue using multiprocessing.Queue, pipes, and shared memory for inter-process communication.

6 min read
Redis Caching in FastAPI: Setup, Pitfalls & Production Tips
redis fastapi

Redis Caching in FastAPI: Setup, Pitfalls & Production Tips

Set up Redis caching in FastAPI for sessions and API results, dodge common pitfalls, and monitor performance in production.

7 min read
Vibe Coding vs Agentic Coding: When to Use Which
vibe-coding agentic-coding

Vibe Coding vs Agentic Coding: When to Use Which

Discover the differences between vibe coding and agentic coding, how they affect FastAPI AI projects, and which workflow fits your production needs.

9 min read
Build & Scale Django Microservices with Docker & Kubernetes
django microservices

Build & Scale Django Microservices with Docker & Kubernetes

Learn to build, containerize, and scale Django microservices using DRF, Docker, and Kubernetes with practical inter-service patterns.

8 min read
Bolt.new Python Backend: FastAPI from Zero to Production
bolt fastapi

Bolt.new Python Backend: FastAPI from Zero to Production

Learn how to scaffold, connect async databases, and deploy a bolt new python backend using FastAPI, with code, pitfalls, and cost tips for indie builders.

9 min read
AI-Generated Code Copyright: What Developers Need to Know
ai copyright

AI-Generated Code Copyright: What Developers Need to Know

Learn why AI code lacks copyright protection, how to license snippets, and steps to secure your IP when building AI-assisted applications.

7 min read
Fix Claude Code Error 529: Causes & Production Solutions
claude ai coding

Fix Claude Code Error 529: Causes & Production Solutions

Resolve Claude Code error 529 fast. Learn why it happens, debug overload issues, and implement retry logic to stabilize your AI backend.

8 min read
Hybrid Search RAG Implementation: A Practical Guide
rag hybrid-search

Hybrid Search RAG Implementation: A Practical Guide

Build a hybrid search RAG implementation using LangChain and a vector store, with keyword fallback, and learn architecture, tuning, and production lessons.

7 min read
Free AI App Builder with Backend: FastAPI Microservice Guide
ai app-builder

Free AI App Builder with Backend: FastAPI Microservice Guide

Learn how to use a free AI app builder with backend to spin up a FastAPI microservice, avoid common pitfalls, and plan a smooth move to production.

8 min read
Model Context Protocol Examples: How to Run MCP with FastAPI
ai agents

Model Context Protocol Examples: How to Run MCP with FastAPI

Learn practical model context protocol examples, set up MCP with Docker, call it from Python, and embed it in FastAPI for production-grade AI services.

9 min read
FastAPI Rate Limiting: Practical Guide for Production
fastapi rate-limiting

FastAPI Rate Limiting: Practical Guide for Production

Learn how to add fastapi rate limiting with custom middleware, Redis or libraries, and get tips for testing and production monitoring in real-world APIs.

8 min read
Fix the Copilot rate_limited Error in Production
copilot ai

Fix the Copilot rate_limited Error in Production

Resolve the Copilot rate_limited error with exponential backoff, quota adjustments, and local LLM fallbacks. Python implementation included.

8 min read
Build a Cursor AI Code Tracking API Client with FastAPI
cursor ai

Build a Cursor AI Code Tracking API Client with FastAPI

Learn to authenticate, call, and store Cursor AI Code Tracking API data in FastAPI using PostgreSQL or Redis with secure, production-ready patterns.

7 min read
FastAPI Testing With Pytest: Practical Patterns
fastapi pytest

FastAPI Testing With Pytest: Practical Patterns

Learn how to set up pytest for FastAPI, use TestClient for sync and async routes, override dependencies, test auth, and manage DB fixtures in production.

8 min read
Cursor AI code editor tutorial: setup, tips, and CI/CD
cursor ai

Cursor AI code editor tutorial: setup, tips, and CI/CD

A step-by-step Cursor AI code editor tutorial: install it, wire it into FastAPI, and add linting, security checks, and CI/CD.

9 min read
RAG pipeline diagram: design, build, and scale
rag pipeline

RAG pipeline diagram: design, build, and scale

Learn how to design a rag pipeline diagram, build each component with FastAPI, integrate vector stores and LLMs, and monitor it in production.

9 min read
Building an ai agent python langchain with FastAPI
ai agents

Building an ai agent python langchain with FastAPI

Learn how to build an ai agent python langchain, hook it into FastAPI, add memory and tool use, then deploy it with scaling and cost awareness.

9 min read
Choose the Best Python Message Queue for Production
python message-queue

Choose the Best Python Message Queue for Production

Compare Celery, RQ, Dramatiq, and Kombu with a practical asyncio-Redis example. Pick the right library for reliable background job processing.

11 min read
ai generated code platform security checklist
ai security

ai generated code platform security checklist

Learn a practical checklist for ai generated code platform security, covering threat modeling, prompt injection, sandboxing, compliance, and monitoring.

9 min read
Kafka Python Tutorial: From Docker to FastAPI
kafka python

Kafka Python Tutorial: From Docker to FastAPI

A hands-on kafka python tutorial: run a broker with Docker, produce and consume asynchronously, and wire it into FastAPI background work.

8 min read
FastAPI Redis Caching: Setup, Async Patterns & Pitfalls
fastapi redis

FastAPI Redis Caching: Setup, Async Patterns & Pitfalls

Add Redis caching to FastAPI with async clients, decorators, and invalidation. Covers Docker setup and monitoring for production apps.

8 min read
Fixing AI Generated Code Quality Issues in Production
ai-generated-code code-quality

Fixing AI Generated Code Quality Issues in Production

Learn how to spot and fix AI generated code quality issues with automated tests, linting, CI gates, and practical refactoring tips for FastAPI backends.

7 min read
Fixing an AI Generated Code Vulnerabilities Report
ai security

Fixing an AI Generated Code Vulnerabilities Report

Learn why AI generated code carries security flaws, and how to turn a vulnerabilities report into a reliable CI/CD guardrail for FastAPI.

7 min read
RAG evaluation using ragas: a practical guide
rag evaluation

RAG evaluation using ragas: a practical guide

Learn rag evaluation using ragas in Python: install, run metrics on a sample pipeline, interpret scores, and automate checks in CI/CD for production.

9 min read
Build an AI Stock Analysis Agent with FastAPI
ai agents

Build an AI Stock Analysis Agent with FastAPI

Follow this step-by-step guide to build an AI agent for stock analysis, covering data sourcing, backtesting, and automated FastAPI deployment.

8 min read
Best Python Libraries for AI Context Data & Agent Frameworks
ai agents

Best Python Libraries for AI Context Data & Agent Frameworks

Compare LangChain, CrewAI, and LlamaIndex for building agents. See how they stack up against OpenAI Assistants and Sim, plus FastAPI deployment tips.

8 min read
Event-Driven Architecture vs Microservices: How to Choose
event-driven microservices

Event-Driven Architecture vs Microservices: How to Choose

Compare event-driven architecture and microservices with Python examples. Learn key trade-offs and pick the right pattern for production systems.

8 min read
Build an AI Agent with Python, Ollama & FastAPI
ai agents

Build an AI Agent with Python, Ollama & FastAPI

Run a local AI agent in Python using Ollama, then expose it via FastAPI with testing tips and production deployment steps.

7 min read
AI Generated Code Detection: Practical Guide for Builders
ai code-detection

AI Generated Code Detection: Practical Guide for Builders

Learn how to reliably detect AI-generated code in CI/CD, spot hidden security bugs, and navigate legal risks before they break production.

8 min read
Building microservices python fastapi: design to production
microservices fastapi

Building microservices python fastapi: design to production

Build microservices python fastapi from design to production, covering REST/gRPC choices, RabbitMQ/Kafka queues, Docker/K8s deployment, testing and security.

10 min read
Using the OpenAI Agents SDK for Python: A Practical Guide
openai agents

Using the OpenAI Agents SDK for Python: A Practical Guide

Learn to install the OpenAI Agents SDK for Python, build agents that use tools, manage memory, add custom functions, and scale with FastAPI or serverless.

8 min read
Practical RAG chunking strategies for reliable RAG pipelines
RAG chunking

Practical RAG chunking strategies for reliable RAG pipelines

Learn effective RAG chunking strategies, choose optimal chunk sizes, and evaluate chunk quality with Python tools like LangChain, LlamaIndex, and RAGAS.

9 min read
Building a Robust RAG Pipeline Architecture for Production
RAG llm

Building a Robust RAG Pipeline Architecture for Production

Learn how to design, evaluate, and scale a production-grade RAG pipeline architecture with FastAPI, LangChain, and hybrid vector stores.

9 min read
FastAPI WebSockets: Production-Ready Setup and Scaling
fastapi websockets

FastAPI WebSockets: Production-Ready Setup and Scaling

Learn how to build, secure, and scale fastapi websockets, covering basic endpoints, lifecycle handling, auth, broadcasting, and Redis-backed scaling.

9 min read
How to Build AI Agents from Scratch with FastAPI
ai agents python

How to Build AI Agents from Scratch with FastAPI

Learn how to build AI agents from scratch: set up Python, pick a framework, design the architecture, add memory, and deploy with FastAPI.

9 min read
FastAPI with asyncpg: Pooling, Transactions & SQLAlchemy 2.0
fastapi asyncpg

FastAPI with asyncpg: Pooling, Transactions & SQLAlchemy 2.0

Build fast async PostgreSQL APIs with FastAPI and asyncpg. Covers connection pooling, copy_records_to_table, transactions, and SQLAlchemy 2.0 integration.

8 min read
Deploy FastAPI on Render with Docker & GitHub Actions CI/CD
fastapi deployment

Deploy FastAPI on Render with Docker & GitHub Actions CI/CD

Learn to containerize FastAPI with Docker Compose, configure Render, and automate GitHub Actions CI/CD for production deployments.

10 min read
FastAPI Async Logging: Structured and Rotating Logs
fastapi async

FastAPI Async Logging: Structured and Rotating Logs

Set up fastapi async logging with structlog and loguru, covering background tasks, websockets, Uvicorn and Gunicorn, and log rotation.

10 min read
FastAPI Async vs Sync: Benchmarks & When to Use Each
fastapi async

FastAPI Async vs Sync: Benchmarks & When to Use Each

Compare FastAPI async vs sync performance with real benchmarks. Learn exactly when to use each endpoint type to avoid pitfalls and boost throughput.

9 min read
FastAPI Error Handling Best Practices: A Hands-On Guide
fastapi error-handling

FastAPI Error Handling Best Practices: A Hands-On Guide

Discover fastapi error handling best practices with custom exception handlers, middleware logging, validation strategies, and TestClient testing.

7 min read
FastAPI background tasks poll APIs, create PDFs, send email
fastapi background-tasks

FastAPI background tasks poll APIs, create PDFs, send email

Discover how to use FastAPI background tasks to poll external APIs, generate PDFs and send emails with aiosmtplib, and know when to move to Celery.

9 min read
Deploy FastAPI on Railway: Docker, PostgreSQL & CI/CD
fastapi deployment

Deploy FastAPI on Railway: Docker, PostgreSQL & CI/CD

Deploy FastAPI on Railway with Docker, Uvicorn workers, PostgreSQL, and GitHub Actions CI/CD. Complete production setup guide.

7 min read
Welcome to LogicLoopTech
meta backend

Welcome to LogicLoopTech

A backend engineering blog on AI, RAG, and FastAPI, covering the real problems engineers hit running services in production.

1 min read
Fix SQLAlchemy Memory Leaks in FastAPI: Sessions & Pooling
performance debugging

Fix SQLAlchemy Memory Leaks in FastAPI: Sessions & Pooling

Stop FastAPI memory leaks by fixing SQLAlchemy session handling and connection pooling. Diagnose leaks fast with production monitoring steps.

5 min read
FastAPI Session Leak Detection: Find and Fix Them
app-development performance

FastAPI Session Leak Detection: Find and Fix Them

Seeing QueuePool errors or rising DB latency in FastAPI? Learn how to detect session leaks and fix long-running SQLAlchemy sessions in production.

4 min read
Why Your FastAPI App Works Locally But Fails in Production
software-development backend

Why Your FastAPI App Works Locally But Fails in Production

FastAPI works locally but fails in production? Fix the five usual causes: Uvicorn workers, QueuePool limits, event loop blocking, and Docker CPU limits.

3 min read
Fix Uvicorn Health Check Timeouts Under Load
backend kubernetes

Fix Uvicorn Health Check Timeouts Under Load

Stop CPU-intensive tasks from blocking the event loop. Step-by-step fix to keep FastAPI pods healthy and pass Kubernetes probes.

4 min read
Deploy FastAPI on Kubernetes with Docker & Gunicorn
productivity docker

Deploy FastAPI on Kubernetes with Docker & Gunicorn

Learn to deploy FastAPI on Kubernetes using Docker and Gunicorn workers. Covers DB pooling, observability, and rollback strategies for production.

7 min read
How Many Uvicorn Workers Do You Actually Need?
backend gunicorn

How Many Uvicorn Workers Do You Actually Need?

Calculate the exact Uvicorn worker count using the (2 x CPU) + 1 formula. Avoid the Docker CPU limit trap and optimize FastAPI concurrency for production.

5 min read
Why FastAPI Apps Slow Down: Low CPU, High Latency
technology performance

Why FastAPI Apps Slow Down: Low CPU, High Latency

Why FastAPI apps slow down over time: how session leaks and blocking code cause high latency while CPU stays low, and how to fix it for good.

8 min read
Fix SQLAlchemy QueuePool Overflow Errors in FastAPI
databases coding

Fix SQLAlchemy QueuePool Overflow Errors in FastAPI

Solve "QueuePool limit of size 5 overflow 10 reached" with correct pool settings and connection cleanup patterns for stable FastAPI apps.

4 min read
FastAPI Lifespan: Replace Deprecated on_event Hooks
refactoring python

FastAPI Lifespan: Replace Deprecated on_event Hooks

Migrate from @app.on_event to lifespan with asynccontextmanager. Fix production startup failures and avoid common gotchas with working code examples.

4 min read
Flask vs FastAPI in 2026: Is Flask Still Relevant?
software-development python

Flask vs FastAPI in 2026: Is Flask Still Relevant?

Compare Flask 3.1 updates and FastAPI performance to pick the right Python framework. Get the verdict on async, speed, and developer experience.

3 min read
Fix: AsyncSession Has No Attribute 'query' in SQLAlchemy 2.0
python migration

Fix: AsyncSession Has No Attribute 'query' in SQLAlchemy 2.0

Fix the AttributeError after upgrading to SQLAlchemy 2.0. Learn the select() syntax to replace AsyncSession.query in FastAPI.

2 min read
Fix SQLAlchemy MissingGreenlet Error in FastAPI Async
python debugging

Fix SQLAlchemy MissingGreenlet Error in FastAPI Async

Fix the 'greenlet_spawn has not been called' error in async SQLAlchemy with FastAPI. Step-by-step solution using selectinload to restore await_only().

3 min read
GitHub Actions vs Cloud Build for Cloud Run CI/CD
docker github

GitHub Actions vs Cloud Build for Cloud Run CI/CD

Compare GitHub Actions and Google Cloud Build for Cloud Run deployments. See auth setup, Docker build speed, and cost differences to pick the right CI/CD.

3 min read
Deploy FastAPI to Google Cloud Run With Docker
docker python

Deploy FastAPI to Google Cloud Run With Docker

Containerize your Python API with Docker and deploy to Google Cloud Run. Step-by-step production guide for serverless FastAPI hosting.

3 min read
Fix AsyncSessionLocal Errors in FastAPI (SQLAlchemy 2.0)
python asynchronous

Fix AsyncSessionLocal Errors in FastAPI (SQLAlchemy 2.0)

Solve missing greenlet errors and configure AsyncSessionLocal correctly with working code examples for SQLAlchemy 2.0 and FastAPI.

5 min read
How to Send Firebase Push Notifications with Python
tutorial python

How to Send Firebase Push Notifications with Python

Send FCM push notifications from Python with the Firebase Admin SDK: setup, working code examples, and how to test your notification integration.

3 min read
Schedule Python Scripts on Google Cloud (Serverless)
python google-cloud

Schedule Python Scripts on Google Cloud (Serverless)

Schedule Python scripts serverlessly with Google Cloud Run and Cloud Scheduler. A practical guide to replacing local cron jobs in production.

3 min read
Create a Firebase Project for FCM Push Notifications
tutorial python

Create a Firebase Project for FCM Push Notifications

Create a Firebase project, enable FCM, and get your API key in minutes. Step-by-step setup guide for developers sending push notifications.

4 min read