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

Integrating Node.js into an existing technology stack

Integrating Node.js into an existing technology stack

Lots of companies have started experimenting with Node.js over the past year, but rather than re-writting everything they've integrated it into their existing stack where it fits best.

Andrew Nesbitt

October 25, 2012
Tweet

More Decks by Andrew Nesbitt

Other Decks in Technology

Transcript

  1. Benefits of integration Move faster on particular features Separation of

    concerns right tool for the right job Node isn’t great for everything
  2. Let’s do this! I’ve got 7 different approaches for bringing

    node into your existing system Ranging from the sane and obvious to the wild and crazy
  3. Url shorteners and redirection Command line tools Asset minification Pixel

    Trackers Internal tools Monitoring Chat bots pixel trackers - documentcloud (ping) monitoring - etsy (statsd) Nicely decoupled
  4. Connect directly to MySQL, Postgres etc Share data with a

    key-value store Likely to duplicate domain logic May introduce race-conditions
  5. Streams If you have a lot of data flowing through

    your application you might create a streaming API Node is great for both creating and consuming streams
  6. create or replace function fib(n int) returns int as $$

    function fib(n) { return n<2 ? n : fib(n-1) + fib(n-2) } return fib(n) $$ LANGUAGE plv8 IMMUTABLE STRICT;