zsh · 404human@dev:~Tab complete · ↑↓ history · type help
#architecture
Tag
#architecture
Articles
49 posts
Headless CMS architecture diagram (real design)A complete headless CMS architecture diagram built from a live Rust, PostgreSQL, and SvelteKit CMS—covering RLS, immutable releases, and MCP auth.
5 min
Running local LLMs with Ollama and Qwen: guideHow to run local LLMs on a laptop with Ollama and Qwen—real RAM and quantization math, tool-calling gotchas, and when local beats cloud APIs.
5 min
What is an LLM context window (and its limits)What an LLM context window holds, how tokens add up across prompts, tools, and replies, why 1M-token windows still degrade, and how to budget it.
5 min
LLM evaluation and metrics: a practical guideHow to build an honest LLM evaluation suite—held-out cases, deterministic graders vs LLM-as-judge, decoy traps, and a runnable Python eval harness.
4 min
Webhook security best practices: sender & appHow to secure both sides of webhooks: HMAC-SHA256 signing, replay timestamp windows, constant-time verify, idempotency, and SSRF/DNS rebinding.
4 min
API rate limiting implementation: real guideHow to implement API rate limiting that survives production: token buckets, bounded maps, real client IPs behind proxies, and IPv6 /64 bucketing.
5 min
OAuth PKCE explained (with real code & traps)What PKCE is in OAuth 2.1, why S256 stops authorization-code interception, runnable Python verifier/challenge code, and real remote MCP pitfalls.
5 min
API security checklist with concrete testsA practical API security checklist backed by real tests—auth before body buffering, tenant RLS, rate limits, SSRF, idempotency, and audit logs.
6 min
AI observability: why telemetry must show gapsWhat AI observability actually needs in production—per-operation timelines, explicit gap markers when events drop, secret redaction, and real bugs.
6 min
AI agent security: threat model and defensesThe seven real security threats in production AI agents—from indirect prompt injection to secret exfiltration—and the code-level defenses that hold.
6 min
CLAUDE.md and AGENTS.md: what actually worksHow to write a short, high-signal CLAUDE.md or AGENTS.md file—what belongs in instructions vs CI tests, a real template, and the hijack risks.
5 min
MCP vs API vs RAG: how to pick for AI appsWhen to use a plain REST API, RAG retrieval, or an MCP server—decided by failure modes, latency, auth boundaries, and how real apps combine them.
5 min
How to build an MCP server (without the traps)Build a working MCP server in ~85 lines of Python over stdio JSON-RPC 2.0, plus the real OAuth, Cloudflare 1010, and approval bugs we hit live.
5 min
Codex vs Claude Code vs Cursor for real reposHow Codex, Claude Code, and Cursor compare on real codebases: terminal vs IDE loops, why one agent shouldn't review itself, and how to choose.
6 min
How to build an AI agent without a frameworkBuild a working AI agent in ~90 lines of code—with step budgets, output caps, approval gates, and the real production bugs toy loops hide.
KV cache explained: why long prompts eat RAMEvery new token an LLM generates has to attend to every previous token. The KV cache saves compute by trading RAM—and explains how prompt caching works.
4 min
Why LLMs see tokens instead of lettersLanguage models never read raw characters. Understanding Byte-Pair Encoding (BPE) explains counting bugs, weird math failures, and surprise API bills.
4 min
How draft preview actually works on a static siteMost headless CMS preview guides assume SSR. Here is what breaks when you add draft preview to a static Astro site on Cloudflare Pages—and how to fix it.
4 min
Why naming a collection /media broke our appHand-maintained reserved-slug lists always rot when new routes ship. Fix route collisions permanently with a CI test that reads your frontend route tree.
3 min
How LLMs compress text into parametersTraining an LLM squeezes trillions of tokens into a fixed weight file. Seeing parameters as lossy compression explains hallucinations and tool use.
5 min
Preventing webhook SSRF and DNS rebinding in RustValidating a URL before calling reqwest is broken by DNS rebinding, redirects, and IPv6 tricks. Enforce SSRF checks inside reqwest's custom Resolve.
Go vs Rust for backend APIs and background workersGo vs Rust in production backends: compile times, tail latency, memory bounds, error handling, async pitfalls, and when each language is the pragmatic choice.
3 min
Cloudflare Pages vs Vercel for static sites and docsCloudflare Pages vs Vercel for static blogs, landing pages, and Astro/Zola docs: bandwidth limits, HTTP _headers CSP/HSTS, deploy workflows, and vendor lock-in.
PostgreSQL vs Redis for background job queuesPostgreSQL (FOR UPDATE SKIP LOCKED) vs Redis for background jobs: crash durability, transactional enqueueing, throughput, and operational footprint.