The Go runtime multiplexes goroutines over OS threads and uses a network poller for supported asynchronous network I/O.
How does the Go runtime process a million I/O-bound requests (e.g., in a proxying/API gateway service)?
The Go runtime multiplexes goroutines over OS threads and uses a network poller for supported asynchronous network I/O.
Короткий ответ
Что ответить на собеседовании
Подробный разбор
Ответ с пояснениями
The Go runtime multiplexes goroutines over OS threads and uses a network poller for supported asynchronous network I/O.
A million requests still require memory, sockets and downstream capacity, so concurrency must be bounded. Timeouts, backpressure and connection limits matter as much as the scheduler.