perf_hooks.monitorEventLoopDelay([options]) function in Node.js
perf_hooks.monitorEventLoopDelay([options]) function (in node js) is a Node.js topic. In plain words you use it for wait for DB then reply in one Node process. Don’t start with a slogan — start with that picture.
Smallest example: async I/O, don’t block. Type it, run it, and say what you see. If you can do that from memory, you know perf_hooks.monitorEventLoopDelay([options]) function (in node js).
From the example next to this theory — perf_hooks.
Trap — fs.readFileSync on a huge file. Fix that before you talk about advanced Node.js.
Viva: what is perf_hooks.monitorEventLoopDelay([options]) function (in node js)? Then show async I/O, don’t block. Then name the trap.
What is perf_hooks.monitorEventLoopDelay([options]) function (in node js)? Show this: async I/O, don’t block. Trap: fs.readFileSync on a huge file.