Hi! While learning about streams I ended up trying to write a module that reads several files and concatenates them. I liked the idea of writing it as a Stream mostly because of the API and how it plays along with other streams:
combo.createStream(['foo.js', 'bar.js']).pipe(zlib.createGzip()).pipe(httpResponse); At first I thought about keeping a stack of files, creating reading streams sequentially and firing only "data" events until I emptied the stack. But "sequential" doesn't sound fast. I'm having trouble finding good information about streams, so I thought about asking here. Do you think it makes sense to use streams in this case? Should I open all streams at the same time and fire "data" events in order? Or is the callback based version enough? What other advantages do streams provide compared to the callback based API? Thanks, Juan -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
