Node.js · Senior · Question 75 of 75
A service does heavy image or video processing. Which approach is most sensible in a Node.js stack?
- ✓Correct answer: Use native or WebAssembly libraries in worker threads or separate workers, keeping the API process free
- 2Increase
UV_THREADPOOL_SIZEto 1000 - 3Implement the processing in plain JavaScript in the request handler
Explanation
Libraries like sharp use native code off the main thread. Very heavy pipelines often live in separate services, scaled independently through a queue.