When Sockets Become the Bottleneck
A loopback TCP hop still costs two syscalls, a copy into the kernel, and a copy back out. At 100GB/s between co-located services, that context-switch tax dominates the profile. Bypassing context switches and kernel socket overhead using POSIX shm, memmap2, and atomic ring buffers removes it entirely.
A Lock-Free SPSC Ring
The producer and consumer share a single mapped region holding a head and tail index plus a power-of-two slot array. Acquire/Release ordering on the indices is the only synchronization required — no mutex, no syscall on the hot path.