Latency budgets, SQLite tuning, and subtraction
Why removing network hops, ORM layers, and unnecessary runtime abstractions beats bolting on caches later. Measured approaches to sub-20ms responses and single-file operations.
Notes and deep-dives on web performance, security engineering, and how resilient systems are built.
Why & How-To
Why removing network hops, ORM layers, and unnecessary runtime abstractions beats bolting on caches later. Measured approaches to sub-20ms responses and single-file operations.
Argon2id hashing, CSRF validation, route-level rate limiting, HttpOnly sessions, and compile-time checks—built into the architecture before the first feature ships.
Engineering Notes
A practical walkthrough of the defensive HTTP boundary every web app needs—and why you can implement it cleanly in under a hundred lines.
performanceWhy removing network hops, external caches, and container orchestration often produces lower latency and simpler operations than distributed stacks.
securityGenerating working UI takes minutes. Making auth, database access, and HTTP boundaries resilient takes deliberate guardrails encoded in code.
Reference Implementations
Single-binary Rust monolith with security wired upfront
Axum + bundled SQLite + Askama templates + HTMX. Auth, CSRF on every form, rate-limited endpoints, HttpOnly sessions, and compile-checked HTML in one compact binary.
Go edition — one binary, one SQLite file, 0.27s swap deploys
Go + chi + pure-Go SQLite (no CGO) + templ + sqlc + Argon2id. Designed for predictable operations on a single VPS with hash-verified uploads and instant rollbacks.
Deliberately boring full-stack TypeScript on Bun
Hono + bun:sqlite + Inertia v3 with in-process SSR (React, Svelte, or Vue). Trades structural cleverness for obvious, traceable code with zero ORM overhead.
Instant publishing without signup friction
Write or paste Markdown, raw HTML, or build visually and get a clean shareable URL in seconds. Built in Rust (Axum + SQLite + Sailfish) as a single binary.
The Author
Work Together
Built quickly with AI or a lean team and about to open to real users? I inspect your auth, password hashing, CSRF, sessions, rate limits, SQL queries, and HTTP headers.
Slow pages, SQLite/DB bottlenecks, oversized JS bundles, or cloud bills growing faster than traffic. I profile the critical path and simplify the stack at the root.
Need a high-speed web product, internal tool, or publishing platform engineered cleanly from day one? Built on proven Rust, Go, or Bun monoliths with full test coverage.