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.3k
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.3k
JPEG を壊す話 / About JPEG corruption
makimoto
0
250
Training for New Graduates in Cookpad (Shitei Todan 2015)
makimoto
0
6k
How to read code
makimoto
0
1.3k
Glitch, OSS activities, and so on (Oedo RubyKaigi 04 #oedo04)
makimoto
5
1.2k
The Pragmatic Animated GIF in Ruby (a RubyConf 2013 lightning talk)
makimoto
0
490
グリッチについて話をします。 #wedding_s
makimoto
3
540
The Pragmatic Glitch (#rubykaigi 2013 LT)
makimoto
4
3k
chiyahoya.me
makimoto
0
300
Other Decks in Technology
See All in Technology
【NW X Security JAWS#3】L3-4:AWS環境のIPv6移行に向けて知っておきたいこと
shotashiratori
0
440
VSCodeの拡張機能を作っている話
ebarakazuhiro
1
630
現代CSSフレームワークの内部実装とその仕組み
poteboy
8
3.7k
Cypress or Playwright?
rainerhahnekamp
0
140
AOAI をきっかけに 社内の Azure 管理を見直した話
recruitengineers
PRO
1
360
web-application-security
matsuihidetoshi
0
180
EMとして2023年度に頑張ったこと / What we did well in FY2023 as a EM
pauli
1
170
Microsoft Intune 勉強会 第 2 回目
tamaiyutaro
1
200
Building Dashboards as a Hobby
egmc
0
280
GraphQL 成熟度モデルの紹介と、プロダクトに当てはめた事例 / GraphQL maturity model
mh4gf
7
1.4k
生産性向上チームの紹介
cybozuinsideout
PRO
1
880
一生覚えておきたい「システム開発=コミュニケーション」〜初めての実務案件振り返りLT〜
maimyyym
1
180
Featured
See All Featured
What the flash - Photography Introduction
edds
64
11k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
6.9k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
322
20k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.9k
It's Worth the Effort
3n
180
27k
Fashionably flexible responsive web design (full day workshop)
malarkey
398
65k
No one is an island. Learnings from fostering a developers community.
thoeni
16
2.1k
Side Projects
sachag
451
41k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
244
20k
How to Ace a Technical Interview
jacobian
272
22k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
30
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