Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
HerokuでRailsアプリ運用のパフォーマンス、SEO対策
Search
kon_yu
December 04, 2014
3
3k
HerokuでRailsアプリ運用のパフォーマンス、SEO対策
Salesforce World Tour Tokyo 2014 DevZone で発表した資料
kon_yu
December 04, 2014
Tweet
Share
More Decks by kon_yu
See All by kon_yu
CTOやフリーランスのキャリアについて
konyu
1
700
石橋を叩いて渡るフリーランスのなり方。マイルド版
konyu
0
50
Pythonで作ったしょうもないもの3連発
konyu
0
140
石橋を叩いて渡るフリーランスエンジニアのなりかた
konyu
0
2.2k
おうちハックLT Roombaでネコを監視してみた
konyu
0
940
Gemの作り方 BacklogのAPIを利用して
konyu
0
1.4k
Processingでクリエイティブコーディング
konyu
0
4.8k
スタートアップツールチラ見せナイト
konyu
0
2.5k
HerokuでWBS砲を打ち返した話
konyu
49
16k
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
51
4.9k
Rails Girls Zürich Keynote
gr2m
93
13k
Code Review Best Practice
trishagee
64
17k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
A better future with KSS
kneath
238
17k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
10 Git Anti Patterns You Should be Aware of
lemiorhan
654
59k
RailsConf 2023
tenderlove
29
890
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
A Tale of Four Properties
chriscoyier
156
23k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Transcript
)FSPLVͰ3BJMTΞϓϦӡ༻ͷ ύϑΥʔϚϯεɺ4&0ରࡦ גࣜձࣾϕετςΟʔνϟʔ ࠓɹ༎հ!LPO@ZV 4BMFTGPSDF8PSME5PVS5PLZP%FW;POF
͡Ίʹ w 3BJMTͰͷαʔϏεӡ༻ʹ͓͍ͯ w ύϑΥʔϚϯεͷվળ w 4&0ରࡦ w )FSPLVͱී௨ͷ-JOVYαʔόͷڥͱൺֱ w
)FSPLVͳΒͰͷରࡦ w ͦͷଞͷ࠷͓ۙؾʹೖΓͷ(FNʹ͍ͭͯ
ຊʹೖΔલʹ
ͪΐͬͱΞϯέʔτ w ࣗʹͯ·ΔͷʹखΛ্͛ͯɺ গ͠ମΛಈ͔͠·͠ΐ͏ w 4BMFTGPSDFࣾαʔϏεͷར༻ܦݧΛฉ͖·͢
4BMFTGPSDFͰࣄΛ͍ͯ͠Δ
GPSDFDPNͰࣄΛ͍ͯ͠Δ
)FSPLVͰࣄΛ͍ͯ͠Δ DSFEJUIJSPEVTL
"NB[PO8FC4FSWJDF ΛͬͯΔ͚Ͳ༷ࢠΛݟʹདྷͨ DSFEJUGVHVUBCFUBJ@TIZBTIJO
8IPBN* w ࠓɹ༎հ ίϯɹϢεέ w 5XJUUFS!LPO@ZV w #FTU5FBDIFS JODɹ$50
w ΦϯϥΠϯӳޠֶशαʔϏε
IUUQTTQFBLFSEFDLDPNLPOZV IFSPLVEFXCTQBPXPEBUJGBOTJUBIVB
None
#FTU5FBDIFSͱ ଞਓӳޠ ࣗӳޠ ڭࡐͰֶΜͰɺ͕ࣗΘͳ͍ӳޠΛֶ ͞ΕΔ ͕ࣗ͢ӳޠΛͦͷ··ӳޠʹ͠ ͍ͯ͘ͷͰɺ͑Δӳޠֶ͕Δ طଘͷӳձαʔϏε #FTU5FBDIFS
#FTU5FBDIFSͷϨοεϯϑϩʔ 2. ߨࢣ͕ఴͱԻԻ! ͨ͠ʰձจʱΛ෮श 1. WritingϨοεϯͰ! ࣗͷʰձจʱΛ࡞Δ 3. SkypeϨοεϯͰ! ʰϚϯπʔϚϯӳձʱ
Λ࣮ફ ͜ͷԫۚͷ ճస͕ӳޠ ྗΛ্͛Δ
͏Ұ࣍ w 3BJMTͰͷαʔϏεӡ༻ʹ͓͍ͯ w ύϑΥʔϚϯεͷվળ w 4&0ରࡦ w )F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w ڥมΛͯ͠ɺదਖ਼Λݟ͚ͭΔ w ͜ΕΛΒͳ͍ͱɺύϥϝλௐͷͨΊʹ ͍͍ͪͪσϓϩΠ͠ͳ͍ͱ͍͚ͳ͍ w ࢀߟIUUQRJJUBDPN0BLCPXJUFNT FGEGDCF
6OJDPSOͷύϑΥʔϚϯε w 3VCZ͕ܥҎԼͷ߹SVCZܥΛ͍·͠ΐ͏ w 6OJDPSOͷϫʔΧʔϝϞϦΛϝϞϦ༻ྔͰ࠶ىಈ w ($ͷར༻ͰϫʔΧʔ͕ੜ͖͢ΔύϑΥʔϚϯε্ w ࢀߟ w
IUUQTXXXEJHJUBMPDFBODPNDPNNVOJUZUVUPSJBMTIPXUPPQUJNJ[F VOJDPSOXPSLFSTJOBSVCZPOSBJMTBQQ w IUUQXXXTBXBOPCPMZOFUDPOUSJCVUJPOSVCZPVUPG CBOEHD
ී௨ͷ-JOVYαʔόͷ߹ w SCFOWͷΠϯετʔϧ w SVCZͷΠϯετʔϧ w SCFOWJOTUBM w SVCZWFSTJPOʹҎԼΛهड़
)FSPLVͷ߹ w (FNpMFʹҎԼΛهड़ SVCZb ͱॻ͔͍ͯ)FSPLVʹHJUQVTIͰσϓϩΠ ͜Ε͚ͩͰ3VCZͰಈ࡞
3VCZ0VUPG#BOE($ w σΧΠ($͕ΔͱύϑΥʔϚϯεʹӨڹ w ϦΫΤετͱϦΫΤετͷؒʹ($ΛΒͤΔɺ 0VUPG#BOE($Λར༻͢Δ w SFGTIUUQXXXTBXBOPCPMZOFU DPOUSJCVUJPOSVCZPVUPG CBOEHD
ઃఆϑΝΠϧ w (FNpMF SFRVJSFbHDUPPMTPPCHD w DPOpHSV SFRVJSFHDUPPMTPPCHD JGEFpOFE 6OJDPSO)UUQ3FRVFTU
VTF($00#6OJDPSO.JEEMFXBSF FOE
'BTUMZ $%/αʔϏε ͷར༻ w +4 $44 ը૾ͳͲ੩తϑΝΠϧΛ ֎෦$%/αʔϏε͔ΒΞΫηε w ߴʹ੩తϑΝΠϧΛΫϥΠΞϯτ
w ΞϓϦέʔγϣϯαʔόͷΞΫηεΛݮ w ݁ՌɺΞϓϦαʔόͷύϑΥʔϚϯεΞοϓ
ී௨ͷ-JOVYαʔόͷ߹ w 'BTUMZ$%/ͷར༻͢Δ߹ΞΧϯτΛ࡞ͬͯ ΫϨδοτΧʔυΛొͯ͠ɺઃఆͯ͠ɾɾɾ w ݄ʑͷܾࡁଞͱผ w ࡶɾ໘͍͘͞
)FSPLVͷ߹ w 'BTUMZΛ)FSPLVͷը໘͔ΒϘλϯҰൃͰՃ͢ Δ͚ͩ
$034ʹҙ w $SPTT0SJHJO3FTPVSDF4IBSJOH w 8FC'POU"KBYΛ͠Α͏ͱ͢ΔͱɺηΩϡϦςΟΤϥʔͰϒ ϥβʹౖΒΕΔ w ϨεϙϯεϔομʔʹҎԼΛՃͯ͠ճආ w "DDFTT$POUSPM"MMPX0SJHJOIUUQXXXCFTUUFBDIFS
JODDPN w *& ҎԼͩͱ"KBY௨৴ͷࡍʹ᠘͕͋ΔͷͰYISKTͳͲͰݕࡧ w IUUQRJJUBDPNFEP@NJUFNTEGCBCEBD
ϗοτσϓϩΠ w ಛʹҰԿσϓϩΠ͢Δ߹ɺ αʔϏεఀࢭɺϨεϙϯεԆɺϢʔβʹͱͬ ͯ৺Α͘ͳ͍ w αʔϏεΛࢭΊΔ͜ͱͳ͘ɺ σϓϩΠͨ͠ͷ্ཱ͕͕ͪͬͨΒݹ͍αʔϏ εͱΓସΘΔΑ͏ʹ͢Δ
ී௨ͷ-JOVYαʔόͷ߹ w (FNDBQJTUSBOPVOJDPSO w SFGIUUQLSBZKQCMPHUSPVCMFTIPPUJOH SBJMTVOJDPSO ! w ଞʹ৭ʑํ๏͕͋Γ·͢
)FSPLVͷ߹ w 1SFMPBEͰμϯλΠϜͳ͠ w ઃఆํ๏ IFSPLVGFBUVSFTFOBCMFBNZBQQQSFCPPU w ίϚϯυҰൃ؆୯
H[JQѹॖͯ͠৴͢Δ w )5.-ɺ$44ɺ+4ςΩετσʔλΛ ѹॖͯ͠ૹ৴ ϨεϙϯελΠϜΛݮ w $%/αʔϏε$MPVE'SPOU༻͍ͯ͠Δ߹ σʔλసૹྔ͕গͳ͍΄͏͕ࡒʹ͍͞͠
ී௨ͷ-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⒎
)FSPLVͷ߹ w HFNIFSPLVEFqBUFS w H[ѹॖͨ͠)5.-Λฦ͢Α͏ʹ͢Δ w (FNpMFʹՃͯ͋͛͠Δ͚ͩͰ0, ! ! w
ࢀߟIUUQRJJUBDPN0BLCPXJUFNT FDDBDDG
4&0ରࡦ w -JOVYͩͱ8FCαʔόͷઃఆ͢Δͱ͜Ζ͕ͩɺ )FSPLVͦΕ͕ग़དྷͳ͍ͷͰ͕ඞཁ w DBOPOJDBMλάΛ͏߹͋Δ͕ ࠓճͰ3FEJSFDUͰઆ໌͠·͢
SBDLSFXSJUF w 3BJMT63-ͷ࠷ޙඌʹ͕͋Δ߹ɺ3BJMTͷ ༗Γແ͠Λٵऩͯ͘͠ΕΔ͕ɺ 4&0తʹ͖ͭΛ*OEFYJOH͞Εͨ͘ͳ͍߹Ϧϥ Πτ w "QBDIFͱ͔/HJOYΛઃఆͰ͖Εͦͬͪͷઃఆ ϑΝΠϧʹॻ͚Δͱ͜Ζ
ઃఆϑΝΠϧDPOpHSV SFRVJSFSBDLSFXSJUF VTF3BDL3FXSJUFEP SS\? ^ FOE
YYYIFSPLVBQQDPNΛ ϦμΠϨΫτ w )FSPLVͷΞϓϦέʔγϣϯඞͣ YYYIFSPLVBQQDPNͱ͍͏63-Λ༩ w ςετͰ͏ʹେมศར w υϝΠϯΛऔಘͯ͠ຊ൪Ͱ͏ʹɺ(PPHMF͕ ొ͞Εͯ͠·͏͍ͭ
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
IUUQͱIUUQT͕͋Δ߹IUUQ ʹ౷Ұͯ͠ϦμΠϨΫτ CFGPSF@pMUFSEFBDUJWBUF@TTM ඞཁͳϝιουʹద༻ͤ͞Δ EFGEFBDUJWBUF@TTM JG 3BJMTFOWQSPEVDUJPO SFRVFTUTTM
SFEJSFDU@UPQSPUPDPMIUUQ TUBUVT NPWFE@QFSNBOFOUMZ FOE FOE
࠷͓ۙؾʹೖΓͷ(FNͷհ w ։ൃɺӡ༻͍ͯ͠Δ্ͰศརͰؾʹೖ͍ͬͯΔ (FNΛগ͠հ
ຊ൪ڥͰͷ͏͔ͬΓΛ͙ w HFNSBDLEFWNBSL w ݕূڥͩͱࢥͬͯૢ࡞ͨ͠Β࣮ຊ൪ڥ ϢʔβใΛޡͬͯมߋͦ͠͏ʹͳͬͯώϠϦ ͜ΜͳώϠϦϋοτΛ͙ !
ઃఆ w (FNpMFʹهHFNbSBDLEFWNBSL w EFWFMPQNFOUSCʹه DPOpHSBDL@EFW@NBSLFOBCMFUSVF DPOpHSBDL@EFW@NBSLUIFNF<UJUMF 3BDL%FW.BSL5IFNF(JUIVC'PSL3JCCPOOFX QPTJUJ
POSJHIU pYFEUSVF DPMPSbSFE > w ࢀߟIUUQLPOZVIBUFOBCMPHDPNFOUSZ
ϝʔϧ༰ΛΩϟϓνϟ w (FNMFUUFS@PQFOFS@XFC w ։ൃڥͰૹ৴ϝʔϧΛҰཡͰ༰֬ೝ
ઃఆ w (FNpMFʹهHFNbMFUUFS@PQFOFS@XFC` w SPVUFTSCʹه JG3BJMTFOWEFWFMPQNFOU ɹNPVOU-FUUFS0QFOFS8FC&OHJOF BUMFUUFS@PQFOFS FOE
w ࢀߟIUUQRJJUBDPNLTIPHPJUFNTEBFBCC
Ұ൪େࣄͳ͓Βͤ w ϕετςΟʔνϟʔͰϛυϧ͔ΒγχΞϨϕ ϧͷΤϯδχΞΛืू͍ͯ͠·͢ w )FSPLVΛຊ൪ڥͰ͍ͬͯ·͢ w 8BOUFEMZͰʮϕετςΟʔνϟʔʯͰݕࡧ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ ωνΞɾαϯλϧνΞӺલͷΰϛശͰ .0σΟεΫΛ୳͢ΪΞονϣͷਅࣅΛ͢Δචऀ