Skip to content
Technical Essays & Tutorials

Articles

Deep dives, design checklists, and architectural notes on agentic systems, AI deployment, and scaling cloud environments.

Agentic Systems • Nov 28, 2026 • 8 min read

Migrating MCP Servers to Streamable HTTP with OAuth 2.1

Migrate legacy SSE MCP servers to Streamable HTTP with OAuth 2.1 in Python FastMCP. Includes stateless load balancing, PKCE token verification, and Docker.

#mcp#fastmcp#oauth2#streamable-http#python#ai-agents
Agentic Systems • Nov 28, 2026 • 8 min read

Nginx Reverse Proxy for Remote MCP SSE & Streamable HTTP

Fix dropped MCP SSE connections and buffered tool responses behind Nginx. Production reverse proxy config for FastMCP Streamable HTTP and SSE transports.

#mcp#nginx#fastmcp#sse#docker#production
AI Engineering • Nov 28, 2026 • 6 min read

Streaming Structured JSON Outputs with Pydantic and vLLM

Stream partial structured JSON outputs without Pydantic ValidationError. Parse incremental LLM token chunks using jiter, OpenAI SDK, and vLLM guided_json.

#structured-outputs#pydantic#vllm#streaming#python#jiter
LLM Serving • Nov 28, 2026 • 7 min read

vLLM V1 Engine: Speculative Decoding and FP8 KV Cache Tuning

Configure vLLM V1 unified scheduler with EAGLE/N-gram speculative decoding and FP8 e4m3 KV cache to cut inter-token latency and double batch concurrency.

#vllm#speculative-decoding#fp8#kv-cache#llm-serving#gpu-optimization
Agentic Systems • Nov 28, 2026 • 7 min read

LangGraph Send API: Parallel Map-Reduce Fan-Out in Python

Build parallel map-reduce workflows in LangGraph using the Send API. Fix InvalidUpdateError with Annotated reducers, bound concurrency, and handle branch errors.

#langgraph#python#map-reduce#ai-agents#asyncio#production-ai
LLM Serving • Nov 8, 2026 • 10 min read

Fixing vLLM KV Cache Fragmentation and PagedAttention Bottlenecks

Resolve vLLM block manager allocation failures, KV cache memory fragmentation, and preemption thrashing under high concurrency with verified production configs.

#vllm#pagedattention#kv-cache#gpu#inference#performance
AI Engineering • Sep 13, 2026 • 6 min read

Local RAG with Ollama, nomic-embed-text, and LanceDB: Sub-50ms Hybrid Search

Build a fully local RAG pipeline using Ollama for embedding, LanceDB for vector storage, and hybrid BM25+vector search. Includes latency benchmarks, chunking strategies, and production integration.

#rag#lancedb#ollama#embeddings#hybrid-search#local#production
LLM Serving • Sep 13, 2026 • 8 min read

How to Fix CUDA Out of Memory in vLLM Without Dropping Concurrency

Fix vLLM CUDA OOM errors without sacrificing throughput. Covers max-model-len, gpu_memory_utilization, KV cache tuning, chunked prefill, and multi-GPU tensor parallelism with real configs.

#vllm#cuda#gpu#inference#production#troubleshooting#llm-serving
LLM Serving • Sep 13, 2026 • 6 min read

Serving DeepSeek R1 671B via Ollama and KTransformers on Consumer VRAM + CPU RAM

Run the full DeepSeek R1 671B parameter model on consumer hardware using KTransformers CPU offloading. Real VRAM requirements, quantization choices, throughput benchmarks, and production limitations.

#deepseek#ktransformers#ollama#cpu-offloading#llm-serving#quantization#benchmark
Agentic Systems • Sep 13, 2026 • 7 min read

Implementing Dynamic Human-in-the-Loop Approval Queues in LangGraph with FastAPI

Build a production human-in-the-loop system with LangGraph interrupt_before, Postgres-persisted approval queues, and FastAPI WebSocket notifications. Complete code for pause, review, and resume workflows.

#langgraph#human-in-the-loop#fastapi#websocket#approval-queue#agents#production
Agentic Systems • Aug 29, 2026 • 11 min read

LangGraph vs CrewAI vs AutoGen: Which Multi-Agent Framework Should You Actually Use?

A technical comparison of LangGraph, CrewAI, and AutoGen for building production multi-agent systems in 2026. Covers architecture, state management, checkpointing, control flow, and a clear decision framework for AI engineers.

#ai-agents#langgraph#crewai#autogen#multi-agent#architecture#production
Agentic Systems • Aug 29, 2026 • 9 min read

PydanticAI in Production: Why Python Engineers Are Replacing LangChain

A technical guide to building type-safe, observable AI agents with PydanticAI. Learn why teams are replacing bloated abstractions with pure Python, dependency injection, and strict schema validation.

#pydanticai#ai-agents#python#langchain#type-safety#production
AI Engineering • Aug 25, 2026 • 5 min read

FastEmbed vs Sentence Transformers: Local Embeddings Benchmark

Benchmark Qdrant FastEmbed against PyTorch Sentence Transformers on CPU memory, cold start, and throughput for production RAG pipelines.

#embeddings#rag#fastembed#sentence-transformers#vector-search#python
AI Engineering • Aug 22, 2026 • 11 min read

Fast LLM Serving in Production: vLLM, SGLang, and TensorRT-LLM

A practical guide to making LLM inference fast and cheap in production. Learn how memory management, batching, and quantization work in vLLM, SGLang, and TensorRT-LLM.

#llm inference#vllm#sglang#tensorrt#gpu optimization#performance
Agentic Systems • Jul 27, 2026 • 13 min read

AI Agent Design Patterns Every Engineer Should Know

A technical reference covering the essential design patterns for building production AI agents, including ReAct, Orchestrator-Worker, Evaluator-Optimizer, Tool Routing, Human-in-the-Loop, and Guardrail patterns.

#ai-agents#design-patterns#architecture#llm#production
AI Engineering • Jan 19, 2026 • 8 min read

Handling Partial Failures in GenAI Workflows

Handle partial failures in multi-step GenAI workflows using compensating retries, idempotent rollbacks, fallback paths, and graceful degradation.

#gen-ai#reliability#error-handling#production