Sector file // nodejs
NODE.JSDECODED.
Event loop, streams & APIs
Easy
13 questionsHow do you enable gzip/Brotli compression for HTTP responses?
Backend ยท 1.2k views ยท nodejs, http, compression
Explain the concept of 'middleware' in Express.js.
Frontend ยท 1.0k views ยท express.js, middleware, web development
How do you run Node.js processes as a background service?
Phone Screen ยท 693 views ยท pm2, deployment, devops
What is the purpose of the assert module in Node.js?
Phone Screen ยท 512 views ยท testing, modules, assert
What is the difference between blocking and non-blocking I/O in Node.js?
DSA ยท 434 views ยท i/o, blocking, non-blocking
What is the use of the 'os' module in Node.js?
Phone Screen ยท 420 views ยท os, modules, performance
What is `npm` and what are its core functionalities?
Phone Screen ยท 390 views ยท npm, package manager, dependencies
How can you securely store and verify passwords in a Node.js application?
Phone Screen ยท 341 views ยท security, crypto, auth
Medium
30 questionsHow do you mock modules, timers, and network calls in Node.js tests?
Backend ยท 1.2k views ยท nodejs, testing, mocking
How would you implement caching in a Node.js application?
System Design ยท 1.2k views ยท caching, performance, redis
Explain the concept of 'event-driven architecture' in Node.js.
System Design ยท 1.2k views ยท event-driven, architecture, event loop
What are 'Event Emitting' patterns and how does error-first callback convention relate to them?
Low-Level Design ยท 1.2k views ยท async, patterns, events
How 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
What is the 12-factor app methodology as applied to Node.js services?
System Design ยท 989 views ยท nodejs, architecture, 12-factor
Hard
19 questionsHow do you profile CPU usage with --prof, 0x, or clinic.js flame graphs?
Backend ยท 1.2k views ยท nodejs, performance, profiling
How do you handle circular dependencies in Node.js?
Low-Level Design ยท 1.1k views ยท modules, commonjs, architecture
How does the Node.js 'dns' module differ from browser-based DNS resolution?
Low-Level Design ยท 879 views ยท dns, networking, modules
What is backpressure in Node.js streams and how do you handle it?
Low-Level Design ยท 878 views ยท streams, memory, backpressure
What is SSRF and how do you mitigate it in a Node.js backend?
Backend ยท 835 views ยท nodejs, security, ssrf
How do you achieve concurrency in Node.js since it's single-threaded?
System Design ยท 664 views ยท concurrency, single-threaded, event loop
What are some common ways to improve performance in a Node.js application?
System Design ยท 654 views ยท performance, optimization, caching
What are Single Executable Applications (SEA) in Node.js?
Backend ยท 647 views ยท nodejs, distribution, sea
Seen a Node.js question that is not here? Add it and help the next candidate.
Share a question