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

构建异步API服务

 构建异步API服务

flyerhzm

May 12, 2013
Tweet

More Decks by flyerhzm

Other Decks in Technology

Transcript

  1. GREEʢഉߦᒗʣ Goliath (Ruby 1.9.3 Mysql + Redis) 4k rps (4进ఔ

    * 4صثʣ=> 250 rps / 进ఔ 90% CPU / 进ఔ 50M / 进ఔ Sunday, May 12, 13
  2. rails / rails-api sinatra grape sinatra + sinatra-synchrony grape +

    goliath ඇ્࠹IO ્࠹IO Sunday, May 12, 13
  3. ab测试 ab -n 1000 -c 1 /leaderboards/1000/users.json rails rails- api

    sinatra sinatra- synchrony grape grape + goliath time taken 18.670 17.465 15.924 8.764 16.719 11.750 Sunday, May 12, 13
  4. ab测试 ab -n 1000 -c 50 /leaderboards/1000/users.json rails rails- api

    sinatra sinatra- synchrony grape grape + goliath time taken 16.424 16.445 16.023 9.336 14.769 8.261 Sunday, May 12, 13
  5. ab测试 ab -n 1000 -c 60 /leaderboards/1000/users.json rails rails- api

    sinatra sinatra- synchrony grape grape + goliath time taken xxx xxx xxx xxx Sunday, May 12, 13
  6. ab测试 ab -n 1000 -c 100 /leaderboards/1000/users.json rails rails- api

    sinatra sinatra- synchrony grape grape + goliath time taken xxx xxx xxx 8.080 xxx 8.180 Sunday, May 12, 13