Basics
Event demultiplexing is used to avoid waiting for I/O events and is design principle behind Reactor pattern, which is the main principle in NodeJS - event loop.
Asynchronous and synchronous operations
We should avoid synchronous functions in the code because they block the event loop. We also shouldn't mix synchronous and asynchronous code in single function.
Last updated
Was this helpful?