Friday 23 February 2018

Node streams, are they lost in the current node community?

As stated in the title, I feel that streams ate lost on the node community.Why am I bringing this up in a time of promises and async/await?Simple when you stream data you get to connect your streams in a "syncronous" fashion via pipes. With the Advent of transform streams it seems unnecessary to use Asyn/await everywhere (besides external API calls). In alot of cases you can pipe your transformations together and avoid "callback hell". They come with back pressure and you can control the byte iterations as you please.I also haven't seen any new uses or "tutorials" on streams in a long time (1+ yr?).So I thought I'd bring this topic back up. Mainly so new users to node can become aware of streams as well as revive a discussion about streams and their use cases.Also if you aren't aware this amazing repo about streams is still relevant. http://ift.tt/TNpydO

Submitted February 23, 2018 at 03:40PM by TheOneRavenous

No comments:

Post a Comment