Blog
Notes on backend engineering, cloud infrastructure, and the things I break along the way.
6 min read
Watching every port with eBPF: detect binds the moment they happen
Polling netstat misses short-lived listeners. Here's how to watch the Linux kernel with eBPF and catch the exact moment any service binds or frees a TCP/UDP port.
eBPF
Linux
Observability
Security
11 min read
JS vs N-API vs WASM: what's actually faster in Node.js?
I implemented five kernels across four data types — numbers (recursive and iterative), strings, objects, buffers — in plain JavaScript, N-API C, and WebAssembly, then measured wall time, CPU, and memory at three input sizes. The results will change how you think about 'going native'.
Node.js
N-API
WebAssembly
Performance
13 min read
What is N-API? Node.js native addons by example
A practical introduction to Node-API in pure C — passing numbers, strings, objects, and Buffers across the JS boundary, with a working repo you can build in one command.
Node.js
N-API
C
Native Addons