HerokuでRailsアプリ運用のパフォーマンス、SEO対策

88588a21eacd7969c5784aed75e84c06?s=47 kon_yu
December 04, 2014
2.4k

 HerokuでRailsアプリ運用のパフォーマンス、SEO対策

Salesforce World Tour Tokyo 2014 DevZone で発表した資料

88588a21eacd7969c5784aed75e84c06?s=128

kon_yu

December 04, 2014
Tweet

Transcript

  1. )FSPLVͰ3BJMTΞϓϦӡ༻ͷ ύϑΥʔϚϯεɺ4&0ରࡦ גࣜձࣾϕετςΟʔνϟʔ ࠓɹ༎հ!LPO@ZV  4BMFTGPSDF8PSME5PVS5PLZP%FW;POF

  2. ͸͡Ίʹ w 3BJMTͰͷαʔϏεӡ༻ʹ͓͍ͯ w ύϑΥʔϚϯεͷվળ w 4&0ରࡦ w )FSPLVͱී௨ͷ-JOVYαʔόͷ؀ڥͱൺֱ w

    )FSPLVͳΒͰ͸ͷରࡦ w ͦͷଞͷ࠷͓ۙؾʹೖΓͷ(FNʹ͍ͭͯ
  3. ຊ୊ʹೖΔલʹ

  4. ͪΐͬͱΞϯέʔτ w ࣗ෼ʹ౰ͯ͸·Δ΋ͷʹखΛ্͛ͯɺ
 গ͠ମΛಈ͔͠·͠ΐ͏ w 4BMFTGPSDFࣾαʔϏεͷར༻ܦݧΛฉ͖·͢

  5. 4BMFTGPSDFͰ࢓ࣄΛ͍ͯ͠Δ

  6. GPSDFDPNͰ࢓ࣄΛ͍ͯ͠Δ

  7.  )FSPLVͰ࢓ࣄΛ͍ͯ͠Δ DSFEJUIJSPEVTL

  8. "NB[PO8FC4FSWJDF Λ࢖ͬͯΔ͚Ͳ༷ࢠΛݟʹདྷͨ DSFEJUGVHVUBCFUBJ@TIZBTIJO

  9. 8IPBN* w ࠓɹ༎հ ίϯɹϢ΢εέ  w 5XJUUFS!LPO@ZV w #FTU5FBDIFS JODɹ$50

    w ΦϯϥΠϯӳޠֶशαʔϏε
  10. IUUQTTQFBLFSEFDLDPNLPOZV IFSPLVEFXCTQBPXPEBUJGBOTJUBIVB

  11. None
  12. #FTU5FBDIFSͱ͸ ଞਓӳޠ ࣗ෼ӳޠ ڭࡐͰֶΜͰ΋ɺࣗ෼͕࢖Θͳ͍ӳޠΛֶ ͹͞ΕΔ ࣗ෼͕࿩͢ӳޠΛͦͷ··ӳޠʹ͠ ͍ͯ͘ͷͰɺ࢖͑Δӳޠֶ͕΂Δ طଘͷӳձ࿩αʔϏε #FTU5FBDIFS

  13. #FTU5FBDIFSͷϨοεϯϑϩʔ 2. ߨࢣ͕ఴ࡟ͱԻ੠࿥Ի! ͨ͠ʰձ࿩จʱΛ෮श 1. WritingϨοεϯͰ! ࣗ෼ͷʰձ࿩จʱΛ࡞Δ 3. SkypeϨοεϯͰ! ʰϚϯπʔϚϯӳձ࿩ʱ

    Λ࣮ફ ͜ͷԫۚͷ ճస͕ӳޠ ྗΛ্͛Δ
  14. ΋͏Ұ౓໨࣍ w 3BJMTͰͷαʔϏεӡ༻ʹ͓͍ͯ w ύϑΥʔϚϯεͷվળ w 4&0ରࡦ w )FSPLVͱී௨ͷ-JOVYαʔόͷ؀ڥͱൺֱ w

    )FSPLVͳΒͰ͸ͷରࡦ w ͦͷଞͷ࠷͓ۙؾʹೖΓͷ(FNʹ͍ͭͯ
  15. 6OJDPSOύϑΥʔϚϯεվળ w 6OJDPSOͷϓϩηεΛϝϞϦ͕͍ͬͺ͍ͳͬͨ Β࠶ىಈ w (FNVOJDPSOXPSLFSLJMMFS w ͜ΕΛ࢖͏ͱ͜Ζ͸-JOVYɺ)FSPLVڞ௨ ࢀߟIUUQTHJUIVCDPNL[LVOJDPSOXPSLFSLJMMFS

  16. ී௨ͷ-JOVYͷ৔߹ w (FNpMFʹҎԼΛ௥Ճ  HFNbVOJDPSOXPSLFSLJMMFS

  17. ઃఆϑΝΠϧDPOpHSV 6OJDPSOTFMGQSPDFTTLJMMFS SFRVJSFVOJDPSOXPSLFS@LJMMFS ! .BYSFRVFTUTQFSXPSLFS ϦΫΤετ਺Λ্ݶ஋ VTF6OJDPSO8PS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PSOXPSLFSTJOBSVCZPOSBJMTBQQ w IUUQXXXTBXBOPCPMZOFUDPOUSJCVUJPOSVCZPVUPG CBOEHD
  22. ී௨ͷ-JOVYαʔόͷ৔߹ w SCFOWͷΠϯετʔϧ w SVCZͷΠϯετʔϧ w SCFOWJOTUBM
 w SVCZWFSTJPOʹҎԼΛهड़ 

    
  23. )FSPLVͷ৔߹ w (FNpMFʹҎԼΛهड़  SVCZb ͱॻ͔͍ͯ)FSPLVʹHJUQVTIͰσϓϩΠ
 ͜Ε͚ͩͰ3VCZͰಈ࡞

  24. 3VCZ0VUPG#BOE($ w σΧΠ($͕૸ΔͱύϑΥʔϚϯεʹӨڹ w ϦΫΤετͱϦΫΤετͷؒʹ($Λ૸ΒͤΔɺ 0VUPG#BOE($Λར༻͢Δ w SFGTIUUQXXXTBXBOPCPMZOFU DPOUSJCVUJPOSVCZPVUPG CBOEHD

  25. ઃఆϑΝΠϧ w (FNpMF SFRVJSFbHDUPPMTPPCHD w DPOpHSV SFRVJSFHDUPPMTPPCHD JGEFpOFE 6OJDPSO)UUQ3FRVFTU 

    VTF($00#6OJDPSO.JEEMFXBSF FOE
  26. 'BTUMZ $%/αʔϏε ͷར༻ w +4 $44 ը૾ͳͲ੩తϑΝΠϧΛ
 ֎෦$%/αʔϏε͔ΒΞΫηε w ߴ଎ʹ੩తϑΝΠϧΛΫϥΠΞϯτ΁

    w ΞϓϦέʔγϣϯαʔό΁ͷΞΫηεΛ௿ݮ w ݁ՌɺΞϓϦαʔόͷύϑΥʔϚϯεΞοϓ
  27. ී௨ͷ-JOVYαʔόͷ৔߹ w 'BTUMZ$%/ͷར༻͢Δ৔߹ΞΧ΢ϯτΛ࡞ͬͯ ΫϨδοτΧʔυΛొ࿥ͯ͠ɺઃఆͯ͠ɾɾɾ w ݄ʑͷܾࡁ΋ଞͱผ w ൥ࡶɾ໘౗͍͘͞

  28. )FSPLVͷ৔߹ w 'BTUMZΛ)FSPLVͷը໘͔ΒϘλϯҰൃͰ௥Ճ͢ Δ͚ͩ

  29. $034ʹ஫ҙ w $SPTT0SJHJO3FTPVSDF4IBSJOH w 8FC'POU΍"KBYΛ͠Α͏ͱ͢ΔͱɺηΩϡϦςΟΤϥʔͰϒ ϥ΢βʹౖΒΕΔ w ϨεϙϯεϔομʔʹҎԼΛ෇Ճͯ͠ճආ w "DDFTT$POUSPM"MMPX0SJHJOIUUQXXXCFTUUFBDIFS

    JODDPN w *& ҎԼͩͱ"KBY௨৴ͷࡍʹ᠘͕͋ΔͷͰYISKTͳͲͰݕࡧ w IUUQRJJUBDPNFEP@NJUFNTEGCBCEBD
  30. ϗοτσϓϩΠ w ಛʹҰ೔Կ౓΋σϓϩΠ͢Δ৔߹ɺ
 αʔϏεఀࢭɺϨεϙϯε஗Ԇ͸ɺϢʔβʹͱͬ ͯ͸৺஍Α͘ͳ͍ w αʔϏεΛࢭΊΔ͜ͱͳ͘ɺ
 σϓϩΠͨ͠΋ͷ্ཱ͕͕ͪͬͨΒݹ͍αʔϏ εͱ੾ΓସΘΔΑ͏ʹ͢Δ

  31. ී௨ͷ-JOVYαʔόͷ৔߹ w (FNDBQJTUSBOPVOJDPSO w SFGIUUQLSBZKQCMPHUSPVCMFTIPPUJOH SBJMTVOJDPSO ! w ଞʹ΋৭ʑํ๏͕͋Γ·͢

  32. )FSPLVͷ৔߹ w 1SFMPBEͰμ΢ϯλΠϜͳ͠ w ઃఆํ๏ IFSPLVGFBUVSFTFOBCMFBNZBQQQSFCPPU w ίϚϯυҰൃ௒؆୯

  33. H[JQѹॖͯ͠഑৴͢Δ w )5.-ɺ$44ɺ+4ςΩετσʔλΛ
 ѹॖͯ͠ૹ৴
 ϨεϙϯελΠϜΛ࡟ݮ w $%/αʔϏε΍$MPVE'SPOU࢖༻͍ͯ͠Δ৔߹
 σʔλసૹྔ͕গͳ͍΄͏͕ࡒ෍ʹ΍͍͞͠

  34. ී௨ͷ-JOVYͷ৔߹ w OHJOYͰઃఆ͢Δͱ$POGϑΝΠϧʹ H[JQPO H[JQ@IUUQ@WFSTJPO H[JQ@UZQFTUFYUQMBJO UFYUYNM UFYUDTT BQQMJDBUJPOYNM BQQMJDBUJPOYIUNM

    YNM BQQMJDBUJPOSTT YNM BQQMJDBUJPOKBWBTDSJQU BQQMJDBUJPOYKBWBTDSJQU H[JQ@CV⒎FSTL H[JQ@NJO@MFOHUI H[JQ@DPNQ@MFWFM H[JQ@QSPYJFEP⒎ H[JQ@EJTBCMF.4*&<>a.P[JMMB H[JQ@WBSZP⒎
  35. )FSPLVͷ৔߹ w HFNIFSPLVEFqBUFS w H[ѹॖͨ͠)5.-Λฦ͢Α͏ʹ͢Δ w (FNpMFʹ௥Ճͯ͋͛͠Δ͚ͩͰ0, ! ! w

    ࢀߟIUUQRJJUBDPN0BLCPXJUFNT FDDBDDG
  36. 4&0ରࡦ w -JOVYͩͱ8FCαʔόͷઃఆ͢Δͱ͜Ζ͕ͩɺ
 )FSPLV͸ͦΕ͕ग़དྷͳ͍ͷͰ޻෉͕ඞཁ w DBOPOJDBMλάΛ࢖͏৔߹΋͋Δ͕
 ࠓճ͸Ͱ3FEJSFDUͰઆ໌͠·͢

  37. SBDLSFXSJUF w 3BJMT͸63-ͷ࠷ޙඌʹ͕͋Δ৔߹ɺ3BJMT͸ͷ ༗Γແ͠Λٵऩͯ͘͠ΕΔ͕ɺ
 4&0తʹ͖ͭΛ*OEFYJOH͞Εͨ͘ͳ͍৔߹Ϧϥ Πτ w "QBDIFͱ͔/HJOYΛઃఆͰ͖Ε͹ͦͬͪͷઃఆ ϑΝΠϧʹॻ͚Δͱ͜Ζ

  38. ઃఆϑΝΠϧDPOpHSV SFRVJSFSBDLSFXSJUF VTF3BDL3FXSJUFEP SS\?  ^  FOE

  39. YYYIFSPLVBQQDPNΛ
 ϦμΠϨΫτ w )FSPLVͷΞϓϦέʔγϣϯ͸ඞͣ YYYIFSPLVBQQDPNͱ͍͏63-Λ෇༩ w ςετͰ࢖͏෼ʹ͸େมศར w υϝΠϯΛऔಘͯ͠ຊ൪Ͱ࢖͏ʹ͸ɺ(PPHMF͕ ొ࿥͞Εͯ͠·͏଀͍΍ͭ

  40. BQQMJDBUJPO@DPOUSPMMFSSCʹ
 ௥ه ཁ͢ΔʹCFGPSF@pMUFSͰYYYIFSPLVBQQDPN΁ΞΫηε͕དྷͨΒਖ਼͠ ͍63-΁ϦμΠϨΫτ CFGPSF@pMUFSFOTVSF@EPNBJO SFEJSFDUGSPNIFSPLVBQQGPS4&0 EFGFOTVSF@EPNBJO
 SFUVSOVOMFTTaIFSPLVBQQDPNdSFRVFTUIPTU
 QPSU\SFRVFTUQPSU^VOMFTT< >JODMVEF

    SFRVFTUQPSU  SFEJSFDU@UP\SFRVFTUQSPUPDPM^\'2%/^\QPSU^ \SFRVFTUGVMMQBUI^ TUBUVTNPWFE@QFSNBOFOUMZ
 FOE
  41. IUUQͱIUUQT͕͋Δ৔߹͸IUUQ ʹ౷Ұͯ͠ϦμΠϨΫτ CFGPSF@pMUFSEFBDUJWBUF@TTM
 ඞཁͳϝιουʹద༻ͤ͞Δ EFGEFBDUJWBUF@TTM
 JG 3BJMTFOWQSPEVDUJPO  SFRVFTUTTM 


    SFEJSFDU@UPQSPUPDPMIUUQ TUBUVT NPWFE@QFSNBOFOUMZ
 FOE
 FOE
  42. ࠷͓ۙؾʹೖΓͷ(FNͷ঺հ w ։ൃɺӡ༻͍ͯ͠Δ্ͰศརͰؾʹೖ͍ͬͯΔ (FNΛগ͠঺հ

  43. ຊ൪؀ڥͰͷ͏͔ͬΓΛ๷͙ w HFNSBDLEFWNBSL w ݕূ؀ڥͩͱࢥͬͯૢ࡞ͨ͠Β࣮͸ຊ൪؀ڥ
 Ϣʔβ৘ใΛޡͬͯมߋͦ͠͏ʹͳͬͯώϠϦ
 ͜ΜͳώϠϦϋοτΛ๷͙ !

  44. ઃఆ w (FNpMFʹ௥هHFNbSBDLEFWNBSL w EFWFMPQNFOUSCʹ௥ه
 DPOpHSBDL@EFW@NBSLFOBCMFUSVF
 DPOpHSBDL@EFW@NBSLUIFNF<UJUMF  3BDL%FW.BSL5IFNF(JUIVC'PSL3JCCPOOFX QPTJUJ

    POSJHIU pYFEUSVF DPMPSbSFE > w ࢀߟIUUQLPOZVIBUFOBCMPHDPNFOUSZ 

  45. ϝʔϧ಺༰ΛΩϟϓνϟ w (FNMFUUFS@PQFOFS@XFC w ։ൃ؀ڥͰૹ৴ϝʔϧΛҰཡͰ಺༰֬ೝ

  46. ઃఆ w (FNpMFʹ௥هHFNbMFUUFS@PQFOFS@XFC` w SPVUFTSCʹ௥ه JG3BJMTFOWEFWFMPQNFOU 
 ɹNPVOU-FUUFS0QFOFS8FC&OHJOF BUMFUUFS@PQFOFS
 FOE

    w ࢀߟIUUQRJJUBDPNLTIPHPJUFNTEBFBCC
  47. Ұ൪େࣄͳ͓஌Βͤ w ϕετςΟʔνϟʔͰ͸ϛυϧ͔ΒγχΞϨϕ ϧͷΤϯδχΞΛืू͍ͯ͠·͢ w )FSPLVΛຊ൪؀ڥͰ࢖͍ͬͯ·͢ w 8BOUFEMZͰʮϕετςΟʔνϟʔʯͰݕࡧ

  48. ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ ΂ωνΞɾαϯλϧνΞӺલͷΰϛശͰ .0σΟεΫΛ୳͢ΪΞονϣͷਅࣅΛ͢Δචऀ