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

OSCON 2012: ql.io and Node.js

OSCON 2012: ql.io and Node.js

OSCON 2012 (July - Portland, OR) presentation by Subbu Allamaraju and myself on ql.io and Node.js

Jonathan LeBlanc

July 20, 2012
Tweet

More Decks by Jonathan LeBlanc

Other Decks in Technology

Transcript

  1. node.js and ql.io Build Your Own HTTP APIs for Agility

    and Scale OSCON July 20, 2012 1  
  2. Find things from A For each thing, find details from

    B For each thing, find more details from C Merge results Use case: 15  
  3. Find products Find dominant categories of products Look up category

    info Merge categories with products Use case: 16  
  4. Get stuff from A If A is down, try from

    B Annotate stuff with other stuff from C Ignore some things from the stuff Join all Use case: 17  
  5. Producers   Client [Really important client] Why don't you give

    me an API optimized for my use cases? Server [Really important producer] Thanks. Get a number and stand in the line! 18  
  6. Producers   Client Server [Really important producer] Thanks. Get a

    number and stand in the line! Who gets to decide the right thing? 19   [Really important client] Why don't you give me an API optimized for my use cases?
  7.   //  Use  ql.io  from  node.js   var  Engine  =

     require('ql.io-­‐engine');   var  engine  =  new  Engine({    //OPTIONS   });     var  script  =  '…';   engine.execute(script,  function(emitter){          emitter.on("end",  function(err,  res){                  …          });   });      
  8. 1.  Interop via HTTP 2.  SQL inspired 3.  Implicit orchestration

    4.  Failure modes 5.  Consumer oriented 35