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

Node.js - Part Five - No JS Redpool

There are cases where asynchronous ready based eventing is not possible. DNS lockups, file IO and user specified workload can use the thread pool. Some CPU intensive libraries in nodes such as the crypto library uses the thread pool too. Calling this function will block the event main loop. It's possible not to use the synchronous version of read file and opt in for the synchronous one. Those calls ends in sync, S-Y-N-C. For example, fs.readfile sync will call the read directly and will block. It will not use the thread Pool.

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