Streaming involves splitting a resource into smaller pieces and processing each chunk one at a time. There are three kinds of streams: readable streams, writable streams, and transform streams. The original Node streams aren’t being deprecated or removed but they will now co-exist with the web standard stream API.

8m read timeFrom css-tricks.com
Post cover image
Table of contents
What are streams?Web streams everywherefetch() response as a readable streamAsync iterationSome other ways to get a readable streamStreams work nicely with promisesCreating your own transform streamCreating your own readable streamNode streams interoperabilityConclusion

Sort: