Skip to content

Readable stream back-pressure example needed #46791

@vincenzon

Description

@vincenzon

Affected URL(s)

https://github.com/nodejs/nodejs.org/blob/main/locale/en/docs/guides/backpressuring-in-streams.md#rules-specific-to-readable-streams

Description of the problem

In the back pressure guide, under rules specific to readable streams, two negative examples are given as guidance of what not to do. However, there is not guidance as to what one should do. There are a number of questions on this on SO, as well as numerous blog posts, but these involve other types of streams.

Having a definitive, here is what you should do, example for readable streams would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions