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

APIs from the Trenches - FOWA 2014

Simon Wood
October 01, 2014

APIs from the Trenches - FOWA 2014

People can spend a lot of time debugging APIs. Think about it, people are consuming something they have not designed or coded, and documentation can only go so far. In this talk we will cover debugging APIs as a consumer, highlight the tools that are out there available to take the pain out of consuming APIs. We will also look at how to bake in debugging as an API author and how to use logging to give you help when things do go wrong.

Simon Wood

October 01, 2014
Tweet

More Decks by Simon Wood

Other Decks in Technology

Transcript

  1. ” @hpoom p “Developing an application and an API in

    parallel can be quite the tricky task” Ryan Able bit.ly/FakeAPI 30
  2. b @hpoom 42 Interfake npm install interfake --save var Interfake

    = require('interfake'); var interfake = new Interfake(); interfake.get('/whats-next').body({ next : 'more stuff '}); interfake.listen(3000); // Listen on port 3000 { "next":"more stuff" } Install Code http://localhost:3000/whats-next
  3. b @hpoom 68 wrk 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 Basic Example Output
  4. ” @hpoom p Kin Lane bit.ly/trenchesOfAPI “API design is often

    done in the trenches of API operations, iterating and perfecting as an API initiative evolves.” 76
  5. @hpoom Thank you please contact me if you have any

    questions Twitter: @hpoom Links: http://bit.ly/ApiTrenches logo 77 By Simon Wood FOWA London 2014 join.holidayextras.co.uk