Backpressure in a pipeline
flowchart LR
A[Readable — source] -->|chunks| B[Internal buffer]
B --> C{buffer < HWM?}
C -->|yes| D[write chunk to Writable]
C -->|no| E[write returns false]
E --> F[pause Readable]
D --> G[Writable consumer]
G -->|drained| H[emit drain]
H --> I[resume Readable]
I --> Apipe wires this loop for you — the pause / resume dance happens without explicit event
handlers in your code.
Comments
Comments are disabled in this environment. Set
PUBLIC_GISCUS_REPO,PUBLIC_GISCUS_REPO_ID, andPUBLIC_GISCUS_CATEGORY_IDto enable.