Ayush Kaushik · Backend & AI Engineer
I build backend systems that stay up — and AI that actually ships.
I design and engineer production-grade APIs, LLM/RAG pipelines, and the data infrastructure behind them. Python and FastAPI at the core, with a focus on reliability, performance, and code other engineers trust.
- FastAPI
- production specialist
- AI / RAG
- LLM systems
- 20+
- deep-dive articles
What I do
Engineering across the full backend stack
Four areas where I do my best work — usually where they overlap.
Backend Development
Robust Python/FastAPI services — clean architecture, async done right, and the reliability work that keeps them running at 3am.
- FastAPI & async Python
- SQLAlchemy & Postgres
- Production hardening
API Architecture
Well-designed REST APIs that scale: versioning, auth, rate limiting, observability, and contracts your consumers can rely on.
- REST & OpenAPI design
- Auth & rate limiting
- Caching & scaling
AI / LLM Engineering
RAG pipelines and LLM-powered features that are grounded, evaluated, and production-ready — not demos that fall over.
- RAG & vector search
- LLM app integration
- Evaluation & guardrails
Data Pipelines
Ingestion, transformation, and scheduling that move data reliably — from one-off scripts to scheduled, monitored workflows.
- ETL & ingestion
- Scheduling & jobs
- Cloud (GCP) automation
Selected work
Deep dives into real production problems
Not case-study theater — full technical breakdowns of issues I've actually debugged and shipped fixes for.
FastAPI SQLAlchemy Session Leak Detection: Diagnose and Fix Long-Running DB Sessions in Production
Diagnosing a production failure that only surfaces under sustained load — and the connection-pool fix that resolves it.
Read the breakdown 02FastAPI in Production: The Complete Deployment Guide (Docker, Workers, Scaling & Best Practices)
The full path from local development to a hardened, scalable production deployment with Docker and workers.
Read the breakdownFrom the blog
Latest engineering writing
Welcome to LogicLoopTech
A backend engineering blog focused on AI, RAG, FastAPI, and the real problems engineers hit in production.
FastAPI SQLAlchemy Session Leak Detection: Diagnose and Fix Long-Running DB Sessions in Production
Learn how to detect and fix FastAPI session leaks. A deep dive into SQLAlchemy connection pooling, long-running sessions, and production monitoring.
FastAPI Session Leak Detection: How to Find and Fix Long-Running SQLAlchemy Sessions in Production?
Seeing QueuePool errors or rising DB latency in FastAPI? Learn how to detect session leaks, debug long-running SQLAlchemy sessions, and fix connection pool
Working on something similar?
If you're building backend or AI systems and want a second set of senior eyes, let's talk.