Sector file // nodejs
NODE.JSDECODED.
Event loop, streams & APIs
Easy
10 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 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
How do you replicate __dirname in ES Modules using import.meta.url?
Backend ยท 473 views ยท nodejs, esm, import-meta
What is the difference between blocking and non-blocking I/O in Node.js?
DSA ยท 432 views ยท i/o, blocking, non-blocking
How can you securely store and verify passwords in a Node.js application?
Phone Screen ยท 340 views ยท security, crypto, auth
Medium
16 questionsWhat is AbortSignal.timeout and how do you cancel async work cleanly?
Backend ยท 1.2k views ยท nodejs, async, abortcontroller
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
Explain how the EventEmitter class works under the hood.
Low-Level Design ยท 967 views ยท eventemitter, patterns, events
What is Helmet and which HTTP security headers should a Node.js API set?
Backend ยท 947 views ยท nodejs, security, helmet
What is the purpose of the AbortController in modern Node.js?
Low-Level Design ยท 911 views ยท async, abortcontroller, promises
What are `EventEmitter`s in Node.js?
Low-Level Design ยท 847 views ยท event emitter, events, architecture
How do you design liveness and readiness health-check endpoints?
Backend ยท 840 views ยท nodejs, ops, health-check
Hard
12 questionsWhat is diagnostics_channel and when would you use it?
Backend ยท 1.0k views ยท nodejs, observability, diagnostics
How do you handle graceful shutdown in a Node.js application?
System Design ยท 868 views ยท deployment, reliability, error handling
How do you implement microservices communication in Node.js?
System Design ยท 836 views ยท microservices, grpc, architecture
What is the purpose of the HTTP Agent in Node.js?
System Design ยท 784 views ยท http, networking, agent
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
How do you achieve concurrency in Node.js since it's single-threaded?
System Design ยท 660 views ยท concurrency, single-threaded, event loop
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 are the Web Streams API (ReadableStream/WritableStream) in Node.js and how do they differ from node:stream?
Backend ยท 478 views ยท nodejs, streams, web-streams
Seen a Node.js question that is not here? Add it and help the next candidate.
Share a question