WantedlyとNew Relicとサイト高速化

WantedlyとNew Relicとサイト高速化

WantedlyをNew Relicを見ながら高速化した話

https://www.wantedly.com/

会社概要
https://www.wantedly.com/companies/wantedly

0f9840a3c048e0f0adc2f9411bca91dd?s=128

Yoshinori Kawasaki

October 17, 2013
Tweet

Transcript

  1. γΰτͰίίϩΦυϧ www.wantedly.com Yoshinori Kawasaki (@kawasy) New Relic Night @ EngineYard,

    17-Oct-2013
  2. ࣗݾ঺հ

  3. None
  4. https://www.wantedly.com/users/10599 [PR] Wantedly಺ϓϩϑΟʔϧΛ Έ͍ͯͩ͘͞

  5. ձࣾ঺հ

  6. None
  7. ΢Υϯςουגࣜձࣾ ͔Β ΢ΥϯςουϦʔגࣜձࣾ ʹͳΓ·͢

  8. https://www.wantedly.com/companies/wantedly [PR] Wantedly಺ձࣾϖʔδΛ Έ͍ͯͩ͘͞

  9. [PR] ϝϯόʔ͸શһ ࣗࣾαʔϏεΛ࢖ͬͯ࠾༻ dogfooding ͯ͠·͢

  10. WantedlyΛNew RelicͰ ߴ଎Խͨ͠࿩

  11. AWS Heroku Ruby on Rails Ruby PostgreSQL Backbone.js ࢖ͬͯΔٕज़ Chef

    Solo
  12. ൒೥લ

  13. ઌ݄

  14. ઌ݄ σβΠϯมߋͷӨڹͰ ΊͬͪΌ஗͘ͳͬͨ 376 ms → 647 ms

  15. ઌ݄

  16. ઌ݄ ൃද·Ͱʹߴ଎Խ͠Α͏ ษڧձυϦϒϯ։ൃ(BDD) ʢύϑΥʔϚϯε΁ͷӨڹΛߟ͑ͯ ɹσβΠϯมߋɾϦϦʔε͢Δͷ͕ຊདྷʣ

  17. ࠓ೔

  18. ࠓ೔ ࠓ೔ͷϦϦʔεͰ ൒೥લͷਫ४ʹ໭ͬͨ 376 ms → 647 ms → 396

    ms
  19. ࠓ೔ ࣾ௕΋େتͼ

  20. ࠓ೔ 400 ms ͸ Ұൠతʹ͸଎͘ͳ͍ͷͰ ࠓޙ΋ܧଓతʹվળ͕ඞཁ

  21. αΠτશମฏۉΑΓ ॏཁͳϖʔδΛଌఆɾ࠷దԽ͢Δ

  22. Wantedlyͷ৔߹ ืूҰཡͱืूཁ߲ͷϖʔδ

  23. ஗͍transaction͸ݸผʹ෼ੳ

  24. ஗͍transaction͸ݸผʹ෼ੳ

  25. ஗͍transaction͸ݸผʹ෼ੳ

  26. ஗͍transaction͸ݸผʹ෼ੳ

  27. Page load timeͰ ϑϩϯτΤϯυɾύϑΥʔϚϯε ͷ௕ظτϨϯυΛ೺Ѳ

  28. ͨͩ͠ શͯrender͞ΕΔ·Ͱͷ࣌ؒͱ Ϣʔβͷମײ଎౓ͱ͸ ඞͣ͠΋Ұக͠ͳ͍

  29. TTFB (Time to First Byte) TTI (Time to Interact) AFT

    (Above the Fold Time) ͳͲ͕࠷ۙ͸ࢦඪͱͯ͠ ஫໨͞ΕͯΔ
  30. http://www.getelastic.com/ttfb-and-tti-2-kpis-more- important-than-page-load-speed/ ࢀߟ

  31. ͓·͚

  32. git push & open pull request github github bot development

    env Jenkins CI start a new build notify build status notify pull request opening update build status on a pull request Pull Request Λ͔ͭͬͨ ϫʔΫϑϩʔ hipchat
  33. None
  34. αΠτ͕஗͘ͳͬͯΔ͜ͱΛ HipChatʹ௨஌ ͙͢ؾ͚ͮΔ

  35. ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ