Learning Hub

Learn system design by building production AI systems

Connect a Cloudflare Worker to PostgreSQL, size your connection pool for a traffic spike, then build an AI workflow that can resume after failure.

Databases and scalingbuild

How do I connect a Cloudflare Worker to PostgreSQL?

Follow one request from a Cloudflare Worker to PostgreSQL. Run a parameterized query with pg, then switch from a direct TCP connection to Hyperdrive to eliminate cold-start connection overhead.

Interactive Lab • Tested 2026-11-27Start
Databases and scalingestimate capacity

How many PostgreSQL connections does my API need?

Estimate average active PostgreSQL connections from request rate and connection hold time, then test how a traffic burst changes your pool and max_connections requirements.

Interactive Lab • Tested 2026-11-27Start
Reliable AI agentsbuild

How do I build a LangGraph agent that resumes after a crash?

Step through a document-review workflow, interrupt it for human approval, simulate a worker crash, and resume from a PostgreSQL checkpoint without duplicating the final write.

Interactive Lab • Tested 2026-11-27Start
Retrieval and document Q&Acompare

When does hybrid search beat vector search for document Q&A?

Run the same queries against a published legal/technical document set—an exact contract ID and a paraphrased clause—and inspect which passages vector search misses that BM25 + RRF catches.

Interactive Lab • Tested 2026-11-27Start
Hiring and deliveryevaluate

What should I ask before hiring an AI agent developer?

Evaluate an AI agent engineer across four production criteria—integrations, failure recovery, evaluation datasets, and handover—and copy a scoped project brief with acceptance criteria.

Interactive Lab • Tested 2026-11-27Start
Reliable AI agentsbuild

How do I build a production MCP server with OAuth?

Architect a Model Context Protocol (MCP) server in Go or TypeScript with separate read Resources and side-effecting Tools, Streamable HTTP transport, and per-tenant OAuth 2.1.

Worked Guide • Tested 2026-11-27Start
Systems & sandboxingcompare

When should an AI backend pair Go with Rust?

Learn when to pair Go goroutines for high-concurrency LLM streaming gateways with Rust for zero-GC document parsing and sub-millisecond sandboxing.

Worked Guide • Tested 2026-11-27Start
Systems & sandboxingbuild

How do I sandbox untrusted AI-generated code with WASM?

Isolate LLM-generated scripts and plugins inside sub-millisecond Rust Wasmtime sandboxes with strict memory limits, CPU fuel caps, and automated CI security checks.

Worked Guide • Tested 2026-11-27Start
Desktop & full-stack AIbuild

How do I run local LLMs in a Tauri v2 desktop app?

Ship an offline-first desktop AI app under 15 MB using your existing React UI, Tauri v2 capability permissions, embedded SQLite, and a Rust local LLM sidecar.

Worked Guide • Tested 2026-11-27Start
Desktop & full-stack AIbuild

How do I structure a streaming Next.js + FastAPI AI SaaS?

Design a multi-tenant AI SaaS with SSE token streaming, async Redis/BullMQ workers for long ingestion jobs, and real-time usage metering before expensive LLM calls.

Worked Guide • Tested 2026-11-27Start
Production Engineering

Need help shipping a production AI or database system?

View Pricing & Sprints
Mugesh Rao
AI Engineer & Full Stack Engineer