Go's standard library net package exposes a synchronous, blocking API to developers while executing non-blocking I/O under the hood via the runtime netpoller. Each network file descriptor is registered with Linux epoll using EPOLLET (edge-triggered mode).

Reducing Syscall Overhead

GODEBUG=schedtrace=1000,netpoll=1 ./edge-gateway --workers=4

When a socket returns EAGAIN, the runtime parks the current goroutine (`gopark`) and reassigns the underlying M (OS thread) to runnable goroutines in the local P runqueue, eliminating thread-per-connection memory bloat.