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
Recipes of Recipe Search
Search
Shimpei Makimoto
January 13, 2013
Technology
5
1.4k
Recipes of Recipe Search
"Recipes of Recipe Search" (レシピ検索開発のレシピ)
13 Jan, 2013 at Tokyo Ruby Kaigi #10 (#tkrk10)
Shimpei Makimoto
January 13, 2013
Tweet
Share
More Decks by Shimpei Makimoto
See All by Shimpei Makimoto
How to Work with Legacy Ruby on Rails Applications in Treasure Data
makimoto
1
1.4k
JPEG を壊す話 / About JPEG corruption
makimoto
0
260
Training for New Graduates in Cookpad (Shitei Todan 2015)
makimoto
0
6.1k
How to read code
makimoto
0
1.4k
Glitch, OSS activities, and so on (Oedo RubyKaigi 04 #oedo04)
makimoto
5
1.3k
The Pragmatic Animated GIF in Ruby (a RubyConf 2013 lightning talk)
makimoto
0
500
グリッチについて話をします。 #wedding_s
makimoto
3
550
The Pragmatic Glitch (#rubykaigi 2013 LT)
makimoto
4
3.1k
chiyahoya.me
makimoto
0
310
Other Decks in Technology
See All in Technology
「認証認可」という体験をデザインする ~Nekko Cloud認証認可基盤計画
logica0419
2
440
エンジニア視点で見る、 組織で運用されるデザインシステムにするには
shunya078
1
310
『GRANBLUE FANTASY: Relink』最高の「没入感」を実現するカットシーン制作手法とそれを支える技術
cygames
1
140
DevRelの始め方
moongift
PRO
1
390
Jetpack Compose Modifier 徹底解説 / Jetpack Compose Modifier
wiroha
0
200
タイミーのレコメンドにおける ABテストの運用
ozeshun
1
140
不動産tech Product Night#2_AIことはじめ_GA橋本
takehikohashimoto
0
190
JTCや セキュリティチェックリストが夢の跡
nikinusu
1
640
Fediverse Discovery Providers overview
andypiper
0
170
JEP 480: Structured Concurrency
aya_ebata
0
130
サーバレスでモバイルアプリ開発! NTTコム「ビジネスdアプリ」のアーキテクチャ / The architecture of business d app
nttcom
12
240
Developer Experienceを向上させる基盤づくりの取り組み事例集
coconala_engineer
0
150
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
327
20k
Build The Right Thing And Hit Your Dates
maggiecrowley
30
2.3k
How GitHub (no longer) Works
holman
310
140k
The World Runs on Bad Software
bkeepers
PRO
64
11k
Atom: Resistance is Futile
akmur
261
25k
A better future with KSS
kneath
235
17k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
157
15k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
43
2k
Designing the Hi-DPI Web
ddemaree
278
34k
How STYLIGHT went responsive
nonsquared
93
5.1k
The Power of CSS Pseudo Elements
geoffreycrofte
71
5.3k
Building Your Own Lightsaber
phodgson
101
6k
Transcript
Recipes of Recipe Search Ϩγϐݕࡧ։ൃͷϨγϐ Shimpei Makimoto, COOKPAD Inc. https://github.com/makimoto
https://twitter.com/makimoto 13 Jan, 2013 | Tokyo Ruby Kaigi #10 ༻ॻମখ௩ΰγοΫ130/Yanone Kaffeesatz
whoami
Shimpei Makimoto / ຊ৻ฏ Software Engineer at Search Team, Service
Infrastructures Group, Technology Div., COOKPAD Inc. ΫοΫύουגࣜձࣾ ٕज़෦αʔϏεΠϯϑϥετϥΫνϟʔάϧʔϓ ݕࡧνʔϜ https://{github,twitter}.com/makimoto
None
ۙگ ࡱӨઍ༿ࢢඒจԽϗʔϧ
ۃΊͯॏཁͳ͜ͱ
We’re hiring http://info.cookpad.com/jobs/ http://info.cookpad.com/graduates/
ϓϨϛΞϜαʔϏε ԁ݄
ຊ ඃࣸମউؒ͞Μ
ࠓ͢͜ͱ
ࠓ͢͜ͱ ΫοΫύουͷݕࡧνʔϜͷ ͍ͭͷࣄʹ͍ͭͯ͠·͢ɻ
None
wϨγϐ\ߘ ݕࡧ^αʔϏε w݄ؒ66ສਓ wϨγϐສ w3VCZPO3BJMT wΤϯδχΞਓ͘Β͍ ΫοΫύου
ؘ༞Ұ ྉཧΛࢧ͑Δٕज़ ࡳຈ3VCZձٞ IUUQTTQFBLFSEFDLDPNIPUDIQPUDIMJBPMJXP[IJFSVKJTIV ࢀߟࢿྉ
݉ࢁݩଠ 4PMSΛͬͨϨγϐݕࡧͷϓϩτλΠϐϯά Ϟʔγϣϊϩδʔ IUUQXXXTMJEFTIBSFOFUQFOHVJOBOBTPMS ࢀߟࢿྉ
Ϩγϐݕࡧ wΫοΫύουͷओཁػೳ ͷҰͭ wਓؾॱݕࡧɺΧςΰϦɺؔ࿈Ωʔ ϫʔυFUD wϨγϐΛͷͤΔਓͱ͕͢͞ਓΛܨ͙
ݕࡧνʔϜ wϝϯό໊ wݕࡧʹ͔͔ΘΔͯ͢ʹΛෛ͏ w ΄΅ ਓͰϢʔβສਓͷ ʮԿͨΑ͏ʯΛࢧ͑Δ @PENGUINANA_ @makimoto ࡱӨനۚͲΜ͙Γࣇಐ༡Ԃ
։ൃ͢Δ ӡ༻͢Δ ࡱӨΦϑΟε
Puppet ͔Β CSS ·Ͱ
master repeater repeater slave slave slave slave cache cache apps
batch ˞αʔόͷదͰ͢ write replication read page cache
None
None
None
Ϩγϐݕࡧ ओཁػೳ ͷҰͭ ࠶ܝ
˺ ݹ͍ϩδοΫ͕ ଟ͍ ࡱӨ+3भࡾ֯ઢॅ٢Ӻ
˺ ݹ͍ϩδοΫ͕ ଟ͍ ࡱӨ+3भࡾ֯ઢॅ٢Ӻ
ࡱӨ෬ݟҴՙେࣾ ݹ͍ͷΛ ৽͍͠ͷʹ ஔ͖͑Δ
- Senna/Tritonn + Solr
- MySQL based logging + Fluentd/TreasureData
- (Tritonn/)MySQL 5.0 + MySQL 5.5
Refactoring ࡱӨൺ୩ઢඌӺલ
- +
- # => 140.hours + # => 4.hours a_batch.process_time ࣮
ࡱӨͱΜ͔ͭͱΜ͖ࠇళ ޱग़͢͠ खಈ͔͢
None
None
ྫ͑ ύϑΥʔϚϯενϡʔχϯά
ݕࡧ ൺֱత ॏ͍ ࡱӨ࣮Ոͷۙॴ
master repeater repeater slave slave slave slave cache cache apps
batch ˞αʔόͷదͰ͢ write replication read page cache
ϖʔδΩϟογϡΛ؏௨ͨ͠ ϨεϙϯελΠϜΛࢹ
None
ύϑΥʔϚϯε͕ѱԽͨ͠Β ࣮ऀͱҰॹʹ͢
caches_action Ͱݕࡧ݁Ռ ΛΩϟογϡ
ΩϟογϡΛద༻
wrapping up ࡱӨΦϑΟε
ࠓ͢͜ͱ ΫοΫύουͷݕࡧνʔϜͷ ͍ͭͷࣄʹ͍ͭͯ͠·͢ɻ
։ൃ͢Δ ӡ༻͢Δ ࡱӨΦϑΟε
ࡱӨ෬ݟҴՙେࣾ ݹ͍ͷΛ ৽͍͠ͷʹ ஔ͖͑Δ
ࡱӨͱΜ͔ͭͱΜ͖ࠇళ ޱग़͢͠ खಈ͔͢
Recipes of Recipe Search Ϩγϐݕࡧ։ൃͷϨγϐ Shimpei Makimoto, COOKPAD Inc. https://github.com/makimoto
https://twitter.com/makimoto 13 Jan, 2013 | Tokyo Ruby Kaigi #10 ༻ॻମখ௩ΰγοΫ130/Yanone Kaffeesatz