Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
第二回ホスティング事業部TechMTG / Hosting TechMTG No2
Search
harasou
February 24, 2017
88
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
第二回ホスティング事業部TechMTG / Hosting TechMTG No2
LT
harasou
February 24, 2017
More Decks by harasou
See All by harasou
ホスティングにおける fuse の利用
harasou
0
180
エボルバビジネスサポート勉強会
harasou
0
58
HosCon Summer 2016 @福岡
harasou
1
240
200万 Webサイトを支える ロリポップ!と mruby
harasou
7
4.4k
ホスティングを支える mruby
harasou
2
2.8k
Featured
See All Featured
HDC tutorial
michielstock
2
870
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
500
The Invisible Side of Design
smashingmag
301
52k
Ruling the World: When Life Gets Gamed
codingconduct
0
330
Rails Girls Zürich Keynote
gr2m
96
14k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.1k
The Cult of Friendly URLs
andyhume
79
7k
How to Talk to Developers About Accessibility
jct
2
550
Bash Introduction
62gerente
615
220k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
690
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
830
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.8k
Transcript
γχΞΤϯδχΞ ݪޱफޛ!IBSBTPV ϗεςΟϯάࣄۀ෦ΠϯϑϥνʔϜ IUUQTIBSBTPVKQ
8IBUJTUIJT
NSVCZ
NSVCZϖύϘͷར༻ঢ়گ αʔϏε ར༻த ະར༻ ϗεςΟϯά ϩϦϙοϓʂ ϜʔϜʔυϝΠϯ ϔςϜϧ ϓνɾϗʔϜϖʔδαʔϏε EBZT"MCVN
4DBMF &$ Χϥʔϛʔγϣοϓ TV[VSJ Χϥϝϧ άʔϖ ϋϯυϝΠυ NJOOF UFUPUF ίϛϡχςΟ +6(&.
NSVCZͱ “Rubyの良さを組み込みに”を合言葉で開発された言語 ɾ·ͭͱΏ͖ͻΖࢯ͕த৺ͱͳΓ݄̐ʹϦϦʔε ɾলαΠζɾলϝϞϦͳίϯύΫτͳ3VCZ ɾ-JOVY8JOEPXT͚ͩͰͳ͘04Ϩε3504Ͱಈ࡞
ΈࠐΈػث
ΈࠐΈػث ɾ3BTQCFSSZ1J ɾ*-$&"1- ɾ4$4,FO[JCPBSE ɾ**+ωοτϫʔΫΞϓϥΠΞϯε 出典:人間とウェブの未来
ΈࠐΈػث ペパボで使う mruby は、 アプリ組み込み
ΞϓϦ͍ΖΜͳػೳΛΈ߹Θͤͯग़དྷ͍ͯΔ # ldd /usr/local/php7.1/bin/php linux-vdso.so.1 => (0x00007ffd42390000) : libexslt.so.0 =>
/usr/lib64/libexslt.so.0 (0x00007fa9d443a000) * libpq.so.5 => /usr/lib64/libpq.so.5 (0x00007fa9d4212000) librt.so.1 => /lib64/librt.so.1 (0x00007fa9d4009000) : libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00007fa9d3450000) * libcurl.so.4 => /usr/lib64/libcurl.so.4 (0x00007fa9d31de000) libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fa9d2fcd000) : libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007fa9d1a10000) * libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00007fa9d162c000) libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fa9d138e000) PostgreSQL cURL SSL通信 NSVCZ
OHY@NSVCZ ΤϯδϯΤοΫεɾΤϜϧϏʔ
௨ৗͷSVCZΘΕํ XFCαʔόʢ/HJOYʣ 04ʢ-JOVYʣ XFCΞϓϦʢSVCZʣ wΫϥΠΞϯτ͔ΒૹΒΕͨϦΫΤετ ͕XFCΞϓϦʹͦͷ··͞ΕΔ wϦΫΤετͷૹઌXFCαʔόͷઃ ఆϑΝΠϧʹهࡌ
OHY@NSVCZΛར༻ͨ͠ΘΕํ XFCαʔόʢ/HJOYʣ 04ʢ-JOVYʣ XFCΞϓϦ ʢ3BJMTͳͲʣ ΫϥΠΞϯτ͔ΒૹΒΕͨϦΫΤετʹΑͬͯɺ NSVCZ͕ৼΓ͚ઌͷઃఆΛಈతʹมߋ XFCΞϓϦ ʢ3BJMTͳͲʣ XFCαʔόʢ/HJOYʣ
04ʢ-JOVYʣ XFCΞϓϦ ʢ3BJMTͳͲʣ NSVCZ
ྫʣOHJOY OHY@NSVCZͷઃఆϑΝΠϧ server { location /proxy { mruby_set_code $backend '
backends = [ "test1", "test2", "test3", ] backends[rand(backends.length)] '; proxy_pass http://$backend; } } wϛυϧΣΞʢOHJOYʣͷ ઃఆϑΝΠϧΛಈతʹมߋ Ͱ͖Δ
.JEEMFXBSFBT$PEF ITCUɿIUUQTXXXTMJEFTIBSFOFUITCU NBUTVNPUPSZɿIUUQTTQFBLFSEFDLDPNNBUTVNPUP@S
·ͱΊ ΈࠐΈ༻్ͷNSVCZ ϛυϧΣΞઃఆΛίʔυԽ ϖύϘͷNSVCZಋೖੈքҰʂ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠