Nodejs Buffer & Stream
Nodejs Buffer & Stream
data. They are also a way to handle network communications or any kind of back-and-forth data
exchange efficiently, by breaking information down into smaller pieces.
Buffer in node js: A buffer is a space in memory (usually RAM) that temporarily stores
binary data.
A buffer is a temporary memory that a stream takes to hold some data until it is consumed.
When a stream processor accepts data faster more than it can digest, sends the data to buffer.
If we try to push some data into the stream, the data is pushed into the stream buffer. So a
buffer is a temporary memory that a stream takes to hold some data until it is consumed.
https://javascript.plainenglish.io/streams-and-buffers-in-nodejs-30ff53edd50f
https://www.naukri.com/code360/library/streams-and-buffer-in-node-js
https://medium.com/globant/node-js-buffer-vs-stream-e2c23df543c1
https://tolustar.com/buffers-and-streams-explained-in-nodejs/
https://medium.com/globant/node-js-buffer-vs-stream-e2c23df543c1