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
How do you handle CORS (Cross-Origin Resource Sharing) in Node.js?
Frontend ยท 992 views ยท cors, security, express.js
What are stream piping and the .pipe() method in Node.js?
Phone Screen ยท 978 views ยท streams, file-system, pipes
What is the difference between readFile and createReadStream in Node.js?
Phone Screen ยท 884 views ยท file-system, streams, memory
What is npx and how does it differ from a global install?
Backend ยท 646 views ยท nodejs, npm, npx
What is structuredClone and when is it useful in Node.js?
Backend ยท 549 views ยท nodejs, cloning, structuredclone
What is the difference between blocking and non-blocking I/O in Node.js?
DSA ยท 432 views ยท i/o, blocking, non-blocking
Explain the concept of REPL in Node.js
Phone Screen ยท 314 views ยท fundamentals, repl, cli
Medium
22 questionsWhat is AbortSignal.timeout and how do you cancel async work cleanly?
Backend ยท 1.2k views ยท nodejs, async, abortcontroller
What is CSRF and how do you protect a Node.js API against it?
Backend ยท 1.2k views ยท csrf, cors, security
What are some best practices for structuring a Node.js project?
System Design ยท 1.1k views ยท best practices, project structure, architecture
How do you manage sessions and authentication in a Node.js web application?
Frontend ยท 1.1k views ยท authentication, sessions, jwt
What is Helmet and which HTTP security headers should a Node.js API set?
Backend ยท 947 views ยท nodejs, security, helmet
What is top-level await and what are its caveats in Node.js ESM?
Backend ยท 925 views ยท nodejs, esm, async
What is the purpose of the AbortController in modern Node.js?
Low-Level Design ยท 911 views ยท async, abortcontroller, promises
How do you design REST API versioning in a Node.js service?
System Design ยท 801 views ยท api-design, versioning, rest
Hard
10 questionsHow do you profile CPU usage with --prof, 0x, or clinic.js flame graphs?
Backend ยท 1.1k views ยท nodejs, performance, profiling
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 changes for a Node.js app running on AWS Lambda vs a long-running server?
System Design ยท 774 views ยท serverless, aws-lambda, cold-start
What are Single Executable Applications (SEA) in Node.js?
Backend ยท 637 views ยท nodejs, distribution, sea
How does HTTP/2 support work in Node.js and how does it differ from HTTP/1.1?
Backend ยท 487 views ยท nodejs, http2, networking
What do `unref()` and `ref()` do on a Node.js Timeout, and why do timers drift?
Backend ยท 388 views ยท timers, event-loop, unref
How do you secure your Node.js API endpoints?
System Design ยท 384 views ยท security, api, authentication
Seen a Node.js question that is not here? Add it and help the next candidate.
Share a question