Product
·
August 2026
How I Made remotecmd 1.7× Faster Than scp Over a 77ms Relay
remotecmd routes file transfers through a WebSocket relay — which means a single TCP stream can't fill the pipe on high-RTT links. I spent two days reading kernel source, CERN GridFTP papers, and gorilla/websocket internals. The result: parallel TCP streams that auto-tune by file size, atomic header+binary framing in the relay, and gzip writer pooling. 50MB over 77ms RTT: 1.74× faster than single stream, 1.21× faster than scp. Here's what worked, what didn't, and why.
#remotecmd
#performance
#tcp
#websocket
#parallel-streams
#open-source
#devtools
Read more