Thoughts & tutorials
Blog
Rust Async Systems Design Auth
One Token, Eight Callers: Single-Flighting JWT Mints in an Async Rust Service
A war story about a 401 that appeared four hundred milliseconds after startup, the cache-stampede pattern hiding behind it, and why 'force refresh' is the subtle part of any single-flight design.
Solana DeFi WebSocket Systems Design
Your WebSocket Is a Hint: Reconciling Perp Positions Without Trusting the Stream
How we keep a local view of exchange-held perpetual futures positions correct when every channel feeding it can lie, lag, or go silent — and why the boring polling loop is the load-bearing part.
Solana Rollups MagicBlock DeFi
Anatomy of an Ephemeral Rollup: 50ms Blocks, Frozen Accounts, and Vanishing History
I traced a perp trade through Flash Trade V2's MagicBlock ephemeral rollup — where the speed actually comes from, how it stays in sync with mainnet, and why the transaction history literally evaporates.