← Graph

Blocking I/O

concept 1 connections

Traditional socket I/O model: read/write operations block the calling thread until the OS buffer has space (write) or data (read). Buffering in both directions hides network-card scheduling latency but means a naive proxy needs at least one thread per direction, scaling poorly in MRI Ruby.

category
pattern
about
Blocking I/O concept
Discusses buffered blocking read/write on sockets

Provenance

Read by
4 extractions