Web Development Node.js Subjective
Aug 16, 2025

What are Streams in Node.js? Explain different types of streams.

Detailed Explanation
Streams are objects for reading/writing data in chunks. Types: 1) Readable (fs.createReadStream), 2) Writable (fs.createWriteStream), 3) Duplex (TCP sockets), 4) Transform (zlib.createGzip). Benefits: Memory efficient, time efficient, composable through piping.
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback