The Backend Engineering Show with Hussein Nasser cover image

When NodeJS I/O Blocks | The Backend Engineering Show

The Backend Engineering Show with Hussein Nasser

00:00

Asynchronous Model for Reading Files

An asynchronous model for reading files is still desirable, especially for database people like us. If the requested portion of the file happened to be in the OS cache, the read will be faster. We may spin up a thread to perform the blocking read while keeping the main thread block free. But technically speaking, it is still synchronous and blocking to the OS. It is just the thread that is blocked instead of the main process. So we're just playing games. Part three: DNS or domain name system or server or service resolves domains and host names to network addresses.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app