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
Rubykaigi2007 RubyとRuby on Railsの活用事例 - @nifty ...
Search
浜中 慶/ HAMANAKA, Kei
June 10, 2007
Technology
0
98
Rubykaigi2007 RubyとRuby on Railsの活用事例 - @nifty TimeLine β はいかにして作られたか -
Rubykaigi2007のスポンサーセッション。タイムライン共有CGMサービス「@nifty TimeLine β」でのRuby on Rails活用事例
浜中 慶/ HAMANAKA, Kei
June 10, 2007
Tweet
Share
More Decks by 浜中 慶/ HAMANAKA, Kei
See All by 浜中 慶/ HAMANAKA, Kei
[Red Hat Forum 2019] 5年後のクラウドへキャッチアップするには/ The Future of “Cloud” ~インフラ基盤の運用自動化を事例として~
khamanaka
0
83
[VMware EVOLVE] 運用作業の80%自動化を実現した「ニフクラ」の取り組みと目指す姿について/ Operation automation on NIFCLOUD
khamanaka
0
330
Amazon Dash Buttonで子育てハック
khamanaka
3
2.1k
スケールするプロダクトを支える組織マネジメント
khamanaka
6
3.5k
クラウドインフラ運用自動化
khamanaka
0
900
Rubykaigi2010 Cloud Management with Ruby
khamanaka
0
250
Rubykaigi2009 Ruby, Railsによる 「ケータイ」 ポータルの作り方!
khamanaka
0
250
Rubykaigi2008 Ruby, Railsによる ”ふつう”な ポータルサイトの作り方!
khamanaka
0
230
@nifty TimeLine βの作り方
khamanaka
0
90
Other Decks in Technology
See All in Technology
権威ドキュメントで振り返る2024 #年忘れセキュリティ2024
hirotomotaguchi
2
740
非機能品質を作り込むための実践アーキテクチャ
knih
3
1.2k
Amazon VPC Lattice 最新アップデート紹介 - PrivateLink も似たようなアップデートあったけど違いとは
bigmuramura
0
190
なぜCodeceptJSを選んだか
goataka
0
160
バクラクのドキュメント解析技術と実データにおける課題 / layerx-ccc-winter-2024
shimacos
2
1.1k
サーバレスアプリ開発者向けアップデートをキャッチアップしてきた #AWSreInvent #regrowth_fuk
drumnistnakano
0
190
10個のフィルタをAXI4-Streamでつなげてみた
marsee101
0
170
Microsoft Azure全冠になってみた ~アレを使い倒した者が試験を制す!?~/Obtained all Microsoft Azure certifications Those who use "that" to the full will win the exam! ?
yuj1osm
2
110
10分で学ぶKubernetesコンテナセキュリティ/10min-k8s-container-sec
mochizuki875
3
330
DUSt3R, MASt3R, MASt3R-SfM にみる3D基盤モデル
spatial_ai_network
2
100
株式会社ログラス − エンジニア向け会社説明資料 / Loglass Comapany Deck for Engineer
loglass2019
3
32k
ガバメントクラウドのセキュリティ対策事例について
fujisawaryohei
0
530
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Done Done
chrislema
181
16k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
28
900
BBQ
matthewcrist
85
9.4k
Scaling GitHub
holman
458
140k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Bash Introduction
62gerente
608
210k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
66k
Raft: Consensus for Rubyists
vanstee
137
6.7k
We Have a Design System, Now What?
morganepeng
51
7.3k
Transcript
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. RubyͱRuby on
Railsͷ׆༻ࣄྫ - @nifty TimeLine β ͍͔ʹͯ͠࡞ΒΕ͔ͨ - χϑςΟגࣜձࣾ 2007/06/10 ຊ Ruby ձٞ 2007 εϙϯαʔηογϣϯ 1
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ࠓ͓͢Δ͜ͱ •
χϑςΟRailsͰͷ։ൃΛ͡Ί·ͨ͠ • ʮ@nifty TimeLine βʯ • Railsಋೖʹ͍ͨΔ·ͰͷετʔϦʔ • ։ൃελΠϧ • ʮ@nifty TimeLine βʯͷཪଆ 2
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ࣗݾհ •
ాʢ̎̕ʣ • தʢ̎̓ʣ • ळʢ̎̒ʣ • ॴଐɿχϑςΟʢגʣαʔϏεΫϦΤʔγϣϯ෦ ɹɹɹαʔϏεࢧԉνʔϜ • ۀɿϙʔλϧ/CGMαʔϏεͷاը/։ൃ 3
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. • ϙʔλϧαΠτͷ։ൃʢཁ݅ఆٛʗਐߦཧʣ
• ओʹࣗࣾCMSΛར༻ ओͳۀ༰ ాͷۀྫɿ 4
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. @nifty TimeLine
βͱ 5
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. @nifty TimeLine
β • @niftyϥϘ͔Ββ൛ͱͯ͠ϦϦʔε • αʔϏε։࢝ɿ20072݄28ʢਫʣ • ར༻ରऀɹɹɿશΠϯλʔωοτϢʔβʔ • ̧̡̪ɹɹɹɹɿhttp://timeline.nifty.com/ 6
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. αʔϏε֓ཁ •
λΠϜϥΠϯ࡞ػೳ • ୭ͰແྉͰλΠϜϥΠϯʢʹදʣ͕࡞Ε·͢ • ΞΫηείϯτϩʔϧػೳɹ • ࣗͱ༑ୡ͚͕ͩॻ͖ࠐΊΔλΠϜϥΠϯͳͲ • ϒϩάύʔπػೳ • ࣗͷϒϩάʹλΠϜϥΠϯΛʂ • Ϣʔβʔؒίϛϡχέʔγϣϯػೳ • ίϝϯτɺλάɺϒοΫϚʔΫ 7
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ͨͱ͑ @nifty
TimeLineͷྺ࢙ Rubyͷྺ࢙ɺ ͦͷଞɿ 8
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ϦϦʔεޙͷԠ •
SBM,weblogͰͷԠɹɹɹɹɹɹɹɹɹɹ →ͯϒɿ590users!ɹɹɹɹɹɹɹɹɹɹɹ ɹ ɹ ɹ ɹ ɹ ɹ ɹ →ʮχϑςΟΒ͘͠ͳ͍αʔϏεʯ ɹ→Geekͳํ͔ΒҰൠͷਓͷใͷྲྀΕ • ࢥ͍͔ͭͳ͔͍ͬͨํΛ͢ΔϢʔβʔ →ʮҿΈձʯλΠϜϥΠϯ →ΞεΩʔΞʔτΛ࡞ͬͨΓ • ϑΟʔυόοΫɺػೳཁ͕ଟ 9
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. TIME +
CGM ৽͍͠։ൃख๏ ৽͍͠ίϛϡχςΟ τϥΠΞϧͱͯ͠@nifty TimeLineΛ։ൃ ɹ Ruby + Ruby on Rails ͳͥ࡞ͬͨͷ͔ʁ 10
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ։ൃʹ͍ͭͯ ɹ
Ruby + Ruby on Rails 11
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ͳͥ Rails
ಋೖʹ͍ͨͬͨͷ͔ʁ • اըʗ։ൃҰମܕͷτϥΠΞϧ • ٕज़ܥࣾһͷٕज़ྗ্ • Web։ൃϓϥοτϑΥʔϜͷબఆ 12
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ࣮ࡍͷಋೖ·ͰͷಓͷΓ (1)
தʮ࠷ॳ͔Β࠷ޙ·ͰαʔϏε࡞Γ͍ͨʯ (2) த͕ NaClओ࠵ͷRailsηϛφʔΛड͚Δ (3)ʮRailsΓ·͠ΐ͏ʂʯͱۙ͘ʹ͍ͨळˍాʹ Λ͔͚Δ (4) NaCl͞Μͱि̍ݚमΛ̐ճΔ (5) ʮ͓ʁʯͱ͍͏͜ͱͰTimeLine (6) ݚमͰϓϩτ࡞ɺվमͯ͠ϦϦʔεʂ (7) Ͱ࣭ʹؾΛ͍·ͨ͠ʢ“χϑςΟ”ʣ 13
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ։ൃελΠϧ •
ຊۀͷ߹ؒ ΈΜͳຊۀΛ࣋ͪͳ͕Βɻ • ʮ༵Railsͷʯ ฐࣾϥϘϧʔϜʹͬͯ͜։ൃ • ΞδϟΠϧ։ൃ اըཁ݅ఆٛʹ࣌ؒΛ͔͚ͣʹͱΓ͋͑ͣ࡞ͬͯΈΔ →ʮΈΜͳͰ࡞ΕΔλΠϜϥΠϯʯॳͷاըʹೖͬͯͳɹ ɹ ɹ ɹ ɹ ɹɹ͔ͬͨ 14
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. γεςϜߏ ֤छσʔλʹ͍ͭͯ
15
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. 7% 8%
10% 11% 29% 35% NaCl͞Μ ຖि༵ͱ ௨ৗۀͷ ۭ͍ͨ࣌ؒ ্࢘ͷཧղ ·ͭͱ Ώ͖ͻΖ͞Μ Dave Thomas͞Μ TimeLineͳʹͰͰ͖͍ͯΔ͔ 16
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. αʔόߏ Apache2.0
+mod_proxy Apache2.0+FastCGI +Rails1.1.6 MySQL4 DBαʔό ※β൛ͷͨΊɺεϐʔυॏࢹͰ̍ผ్ίʔϧυελϯόΠ Railsαʔό Web/Proxyαʔό ʢFlash/blogpartsɺ੩తίϯςϯπʣ ×̎ ×̎ ×̍ FileServer LoadBalancer ιʔεʗը૾ ΩϟογϡϑΝΠϧ ͳͲΛڞ༗ 17
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ͦͷଞͷσʔλ •
ొϢʔβɿ3,000໊ • ొλΠϜϥΠϯɿ2,500݅ • ొهࣄɿ35,000݅ 18
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ͦͷଞͷσʔλ •
Controllersɿ12+6ʢཧऀػೳʣɺModelsɿ8ɺ Helpersɿ8ɺViewsɿ116ɺPluginsɿ7 • ιʔείʔυɿ8,000ߦʢviewΛআ͘ʣ • ͍ΘΏΔ ਓ݄Ͱࢉɿ̐ʙ̑ਓ݄͘Β͍ʁ • ࣾһ3໊ʴNaCl༷2໊ʴFlasher1໊ʴσβΠφʔ໊̎ͷɺ શһ݉ମ੍ ※্هαʔϏεϦϦʔε࣌ 19
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ෛՙରࡦ •
Ωϟογϡ(fragment caching) • ҰཡܥϖʔδΛத৺ʹɻ • DBνϡʔχϯά • BlogParts༻νϡʔχϯά • Proxyαʔόɺxmlͷpage caching 20
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ࠓޙͷల։ •
ϢʔβʔͷΛͰ͖Δ͚ͩૣ͘۩ݱԽ͢Δ • “ࣗΒ͠͞”ΛදݱͰ͖Δπʔϧʹ • ଞͷαʔϏεͱͷ࿈ܞࢹʹ 21
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ࠷ޙʹ •
χϑςΟɺRailsͰͷ։ൃΛ ࢝Ί·ͨ͠ʂ • ͠ػձ͕͋ΕɺҰॹʹ։ൃ͠·ͤΜ͔ʂʂʂ ʢਓࡐืूதʂʣ • ΒɺRailsͰͷ։ൃΛ ָ͠ΜͰ·͢ʂʂ 22
Copyright (c) 2007 NIFTY Corporation. Some Rights Reserved. ͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠
23