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

API Management from the Trenches

API Management from the Trenches

APIs are at the heart of a vast number of applications, and they are not always written by the development team implementing them.

Consuming an external API can be fun but also fraught with potential issues, bottlenecks and nightmares. When documentation can only help you to a certain degree, what can you do?

This session will cover dealing with API resources for your application and some really useful tools and techniques to assist you as you implement them.

Matt Gifford

October 23, 2015
Tweet

More Decks by Matt Gifford

Other Decks in Technology

Transcript

  1. “Great things are done by a series of small things

    brought together.” - Vincent Van Gogh
  2. npm install interfake --save var Interfake = require('interfake'); var interfake

    = new Interfake(); interfake.get('/whats-next').body({ next : 'more stuff '}); interfake.listen(3000); // The server will listen on port 3000 { "next":"more stuff" } http://localhost:3000/whats-next
  3. wrk -t12 -c400 -d30s http://127.0.0.1:8080/index.html Running 30s test @ http://127.0.0.1:8080/index.html

    12 threads and 400 connections Thread Stats Avg Stdev Max +/- Stdev Latency 635.91us 0.89ms 12.92ms 93.69% Req/Sec 56.20k 8.07k 62.00k 86.54% 22464657 requests in 30.00s, 17.76GB read Requests/sec: 748868.53 Transfer/sec: 606.33MB