Home

Writing

Notes on softwares, backend systems, Rust, and the infrastructure underneath the things we ship.

7 essays

2026

The Case of the Second Command That Never Was

A Redis clone that answered the first command and went deaf on every one after. The culprit: edge-triggered event loop semantics, and a read() that only fired once.

Rust/8 min read/Jul 2026

What Actually Is an Event Loop?

The internet made event loops sound like dark magic. They're not — they're a coffee shop. A from-scratch mental model, connected to real Rust.

Concept/9 min read/Jul 2026

Two Ways to Handle a Thousand Clients: Multithreading vs. I/O Multiplexing

A hands-on comparison in Rust — every single line of code explained, no scary hand-waving, mild jokes included.

Rust/12 min read/Jul 2026

I Built an HTTP Server in Rust Without Frameworks: What Tokio Was Hiding From Me

Building an HTTP server from scratch in Rust with no frameworks. What Tokio's abstractions actually do under the hood: async runtimes, tasks, and the machinery behind the convenience.

Rust/9 min read/Jul 2026
2025

Why TanStack Query Should Be Your Go-To for Data Fetching in React

Stop abusing useEffect for data fetching. Why TanStack Query is the superior solution for managing server state, caching, and data sync.

React/8 min read/Jun 2025

Monorepos: An In-Depth Look

Managing multiple projects in a single repo. How monorepos solve code duplication, complexity, and fragmentation in modern development.

Architecture/6 min read/Feb 2025