Question · NestJS course · Module 8: Caching and Performance

Worker Threads in Node.js

Worker threads in Node.js are best used for:

Answer options

  • All I/O operations
  • CPU-intensive tasks to avoid blocking the event loop
  • Only database queries
  • Only HTTP requests

You can check the correct answer by solving this task in the CodeWorlds game.