| layout | default |
|---|---|
| title | Buffers and Streams |
| url | buffers-and-streams |
| author | john |
| date | 2019-11-14 |
Prerequisites: events
The Node Application Developer Certification exam section for Buffers and Streams is worth 11% of the total and is broken into the following sections:
- Node.js Buffer API’s
- Incremental Processing
- Transforming Data
- Connecting Streams
The Node.js APIs Buffer and Stream are fundamentally seperate topics yet are intrinsically linked. This section will cover how these APIs work individually and with each other.
Buffers are fixed size chunks of memory outside the V8 heap, managed by the Node.js Buffer class. These allow applications to work with binary data across networked streams (TCP) and reading or writing to the file system.
The Node.js Stream module provides an API for working with streaming data. Streams are a fundamental concept in, and are prevalent throughout applications built on, Node. Streams are an efficient way to handle sending and receiving data particularly for large or indeterminate amounts of data.
Buffer
In computer science, a data buffer (or just buffer) is a region of a physical memory storage used to temporarily store data while it is being moved from one place to another.
-- Wikipedia