4 ms·
I’ve tried to get into Streams at one point, for their promise of efficient processing of large (infinite) streams of data. Great for stuff like kafka / event s
by seer 3y ago
I’ve tried to get into Streams at one point, for their promise of efficient processing of large (infinite) streams of data. Great for stuff like kafka / event streams.
There is a lot of very nice functionality in Node around it - pipe functions and the like, and it can work, but in the end I’ve settled on just using async iterators.
It’s just so easy and understandable to go
for await (const item of my AsyncIterator) { … }
And for people who don’t grasp in detail how it all works, the abstraction is very easy to use.