Engineering Notebook.
First-principles writing on backend architecture, distributed systems, cloud platforms, and the internals that power modern software.
How I gave my AI tools a shared memory using MCP and pgvector
SessionVault is a hosted MCP server that lets Claude and Cursor share the same session context. Encrypted at rest, tenant-isolated by Postgres RLS, searchable by pgvector.
WebSockets in Production: Heartbeats, Reconnects, and Backpressure
A production-minded guide to WebSockets covering heartbeats, reconnects, fan-out, and backpressure on long-lived connections.
Software Systems · Networking & Security
ReadStreaming Like ChatGPT: Build Server-Sent Events from Scratch
A first-principles guide to Server-Sent Events, from the wire format and reconnect behavior to streaming ChatGPT-style responses.
Software Systems · Networking & Security
ReadTLS for Backend Engineers: The Handshake and Where It Breaks
The practical version of TLS 1.3 for people who configure it rather than implement it: what the handshake does, where the trust boundary really ends, and the failures that actually page you.
Networking & Security · Software Systems
ReadWriting Raw HTTP Over TCP with Sockets
A first-principles walkthrough of HTTP over raw TCP sockets, from request lines and headers to building a simple server from scratch.
Networking & Security · Software Systems
ReadDNS for Engineers: Recursion, Authority, Caching, and Why 'Propagation' Gets Blamed for Everything
A practical mental model of recursive resolvers, authoritative servers, caching, and why DNS 'propagation' is usually cached state in disguise.
Networking & Security
Read