Build Your Own Network Security Protocol and Get Away Uncaught
summary
A Go backend faces SSL handshake limits (≈250 new TLS connects/sec/core with Go, ≈500 with OpenSSL) so the team implements a custom lightweight security layer to avoid per-connection crypto cost and support 1M new connections in 30 seconds. It uses AES for bulk encryption and AES + CRC32 checks, a server-held encrypted “tricky ID” that carries user key and ID, sliding server key rotation every ~4 hours, nginx sticky sessions, and an attach/attach-request session handshake to limit replay. Two engineers spend ~2 months; it works but carries replay and audit risks.
AI-written summary · about
