Kestrel Notes

Personal log on Linux networking, distributed systems, and minimalist web architecture.

Tuning TCP Buffers for High-BDP Links

November 14, 2026 · Networking

Default kernel socket buffers are tuned for local area networks and often bottleneck single-stream throughput across trans-Pacific paths. Adjusting rmem_max, wmem_max, and enabling BBR congestion control significantly reduces tail latency under mild packet loss.

Zero-Dependency Static Hosting with Nginx

October 28, 2026 · Infrastructure

Serving plain HTML and CSS directly from disk over HTTP/2 and TLS 1.3 keeps memory usage under 15 MB while delivering sub-50ms Time to First Byte. Removing third-party analytics and external font requests eliminates unnecessary DNS lookups.

Using SQLite in Production for Read-Heavy Services

September 19, 2026 · Databases

With WAL mode enabled and sensible busy timeouts, SQLite comfortably handles thousands of concurrent reads per second on NVMe storage without the operational overhead of managing a separate database daemon.