1 / 24

High Performance API Mashups with Node.js and ql.io

High Performance API Mashups

jcleblanc
Download Presentation

High Performance API Mashups with Node.js and ql.io

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. High Performance Mashups Using ql.io and Node.js Jonathan LeBlanc Developer Evangelist (PayPal) Twitter: @jcleblanc | @PayPalDev Github: github.com/jcleblanc

  2. ql.io: The Problem is API Overload

  3. ql.io: Reducing Workload + Processing Reduced Documentation Reduced Code Length Reduced Result Syncing

  4. ql.io: Increasing Performance (Requests)

  5. ql.io: Error Handling and Reporting

  6. ql.io: Open Standard Foundation

  7. ql.io: Using the System Standalone Server / Node.js App Web Endpoint

  8. Language: Defining a Data Source Include in Request Include in .ql Table

  9. ql.io: The Test Console Test Console: http://ql.io/console

  10. Language: Including Script Routes user = "jcleblanc"; slides = select * from slideshare where user="{user}"; twitter = select * from github.users where user="{user}"; return { "slides": "{slides}", "twitter": "{twitter}" } via route '/social' using method post;

  11. Language: Using Script Routes curl --header "content-type: application/x-www-form-urlencoded" -d "user=jcleblanc" http://localhost:3000/social

  12. Example: Mustache Templates

  13. Example: jQuery for Cross Domain Reqs

  14. Let’s Do It!

  15. Tools: API Masher Visualization Engine: https://github.com/jcleblanc/api-masher Technology Backbone – ql.io – jQuery – Mustache Templates

  16. Node.js: Installing the Package npm install ql.io-engine

  17. Node.js: Including the Engine var Engine = require('ql.io-engine'); var engine = new Engine({ … });

  18. Node.js: Invoking the Engine var script = "select * from …"; engine.execute(script, function(emitter){ emitter.on("end", function(err, res){ console.log(res['body'][0]); }); });

  19. Tools: External API Tables Tables Source: https://github.com/jcleblanc/ql.io-tables https://github.com/ql-io/ql.io- site/tree/master/tables

  20. Thank You! Any Questions? http://www.slideshare.net/jcleblanc Jonathan LeBlanc Developer Evangelist (PayPal) Twitter: @jcleblanc | @PayPalDev Github: github.com/jcleblanc

More Related