Sector file // nodejs
NODE.JSDECODED.
Event loop, streams & APIs
Easy
3 questionsWhat is the difference between readFile and createReadStream in Node.js?
Phone Screen ยท 884 views ยท file-system, streams, memory
What is structuredClone and when is it useful in Node.js?
Backend ยท 549 views ยท nodejs, cloning, structuredclone
How can you securely store and verify passwords in a Node.js application?
Phone Screen ยท 340 views ยท security, crypto, auth
Medium
14 questionsHow do you implement a custom Transform stream?
Backend ยท 1.1k views ยท nodejs, streams, transform
What are Worker Threads in Node.js and when would you use them?
System Design ยท 1.1k views ยท worker threads, concurrency, performance
What is the difference between spawn() and exec() in Node.js?
Phone Screen ยท 1.1k views ยท child-process, streams, v8
Explain the differences between fork(), spawn(), and exec() in the child_process module.
Low-Level Design ยท 763 views ยท child-process, concurrency, performance
How do you monitor a Node.js application's memory usage in production?
System Design ยท 711 views ยท monitoring, memory, production
`Buffer.alloc` vs `Buffer.allocUnsafe` vs `Buffer.from` โ what are the security implications?
Low-Level Design ยท 672 views ยท buffer, security, memory
How do you implement Server-Sent Events (SSE) in Node.js?
Backend ยท 649 views ยท nodejs, sse, realtime
How do you limit the concurrency of many async operations (p-limit / promise pool)?
Backend ยท 647 views ยท nodejs, concurrency, async
Hard
6 questionsExplain how memory management and Garbage Collection work in the V8 engine.
Low-Level Design ยท 1.1k views ยท v8, memory, garbage-collection
When would you use `child_process` module in Node.js?
System Design ยท 1.0k views ยท child_process, system calls, concurrency
What are memory leaks in Node.js and how do you detect them?
Low-Level Design ยท 950 views ยท memory, debugging, v8
What is backpressure in Node.js streams and how do you handle it?
Low-Level Design ยท 876 views ยท streams, memory, backpressure
What are some common ways to improve performance in a Node.js application?
System Design ยท 652 views ยท performance, optimization, caching
How do you build a worker-thread pool (e.g. Piscina) for CPU-bound work?
Backend ยท 370 views ยท nodejs, worker-threads, concurrency
Seen a Node.js question that is not here? Add it and help the next candidate.
Share a question