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

Your API is too slow!

Your API is too slow!

RedDotRubyConf 2016

Grzegorz Witek

June 23, 2016
Tweet

More Decks by Grzegorz Witek

Other Decks in Programming

Transcript

  1. Web application optimization loading priority static content dynamic content domain

    sharing JavaScript compression asset minifying CSS HTML un-CSS prefetching HTTP/2 image sprites CDN database optimization multi-threading
  2. Web API optimization loading priority static content dynamic content domain

    sharing JavaScript compression asset minifying CSS HTML un-CSS prefetching HTTP/2 image sprites CDN database optimization multi-threading
  3. Improve Redis on a separate machine - fast Redis on

    the same machine - faster Application memory - the fastest
  4. Speed up your API use CDN infrastructure profile and benchmark

    focus on the slowest part rewriting is the last thing to consider
  5. Speed up your API Ruby is fast enough Sinatra is

    fast enough Rails is fast enough