Upgrade to Pro — share decks privately, control downloads, hide ads and more …

NodeJS...now what?

NodeJS...now what?

Internal tech share, a little bit status of nodejs and stream module.

Shih-Yung Lee

December 21, 2012
Tweet

More Decks by Shih-Yung Lee

Other Decks in Programming

Transcript

  1. Power of STREAM!! "We should have some ways of connecting

    programs like garden hose--screw in another segment when it becomes when it becomes necessary to massage data in another way. This is the way of IO also." - Doug McIlroy
  2. Power of STREAM!! Read & Write http://nodejs.org/api/stream.html Readable r.emit('data', chunk)

    ; r.emit('end') r.pause() ; r.resume() Writable w.write(chunk) ; w.end() w.on('drain', writeMore)
  3. • immediate 'data' events • pause() doesn't • buffering is

    too hard to get right • hyperactive backpressure • crypto isn't streaming Pay attention
  4. • immediate 'data' events • pause() doesn't • buffering is

    too hard to get right • hyperactive backpressure ◦ DEMO TIME!! • crypto isn't streaming ◦ Landing on v0.10 Pay attention