Sector file // nodejs
NODE.JSDECODED.
Event loop, streams & APIs
Easy
4 questionsHow do you enable gzip/Brotli compression for HTTP responses?
Backend ยท 1.2k views ยท nodejs, http, compression
What does NODE_ENV=production actually change and why does it matter?
Backend ยท 620 views ยท nodejs, ops, node-env
What is the use of the 'os' module in Node.js?
Phone Screen ยท 420 views ยท os, modules, performance
What is the role of the V8 JavaScript engine in Node.js?
Phone Screen ยท 334 views ยท v8, javascript, runtime
Medium
18 questionsHow would you implement caching in a Node.js application?
System Design ยท 1.2k views ยท caching, performance, redis
How do you manage configuration in a Node.js application for different environments?
Low-Level Design ยท 1.1k views ยท configuration, environment variables, deployment
What are Worker Threads in Node.js and when would you use them?
System Design ยท 1.1k views ยท worker threads, concurrency, performance
Explain how the EventEmitter class works under the hood.
Low-Level Design ยท 970 views ยท eventemitter, patterns, events
How does `async/await` work and what are its benefits?
DSA ยท 859 views ยท async/await, promises, asynchronous
Explain the differences between fork(), spawn(), and exec() in the child_process module.
Low-Level Design ยท 769 views ยท child-process, concurrency, performance
`Buffer.alloc` vs `Buffer.allocUnsafe` vs `Buffer.from` โ what are the security implications?
Low-Level Design ยท 675 views ยท buffer, security, memory
What is the perf_hooks module and how do you measure performance?
Backend ยท 656 views ยท nodejs, performance, perf-hooks
Hard
7 questionsHow do you profile CPU usage with --prof, 0x, or clinic.js flame graphs?
Backend ยท 1.2k views ยท nodejs, performance, profiling
What is `process.nextTick()` and `setImmediate()` and when to use them?
DSA ยท 1.2k views ยท event loop, scheduling, asynchronous
When would you use `child_process` module in Node.js?
System Design ยท 1.0k views ยท child_process, system calls, concurrency
How do you implement a circuit breaker for unreliable downstream services?
System Design ยท 977 views ยท nodejs, resilience, circuit-breaker
What are some common ways to improve performance in a Node.js application?
System Design ยท 654 views ยท performance, optimization, caching
Explain the concept of 'Event Loop Pollution' and how to avoid it.
Low-Level Design ยท 525 views ยท event-loop, performance, asynchronous
How does HTTP/2 support work in Node.js and how does it differ from HTTP/1.1?
Backend ยท 489 views ยท nodejs, http2, networking
Seen a Node.js question that is not here? Add it and help the next candidate.
Share a question