30
ぱろっと、Padrinoやめるってよ by�@parrotstudio�for�#webcommcafe�2013/04/14 ぱろっと、 Padrino やめるってよ ぱろっと(@parrotstudio) web�community�cafe�#2

ぱろっと、Padrinoやめるってよ

Embed Size (px)

DESCRIPTION

「web community cafe」で提供した「話題」 LTでも発表でもないので、最後はあくまで話題の提供で終わってます あと、ぱろっとPadrinoやめへんで( ゚Д゚)y─~~

Citation preview

Page 1: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

ぱろっと、Padrino

やめるってよ

ぱろっと(@parrot̲studio)web�community�cafe�#2

Page 2: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

※やめません

Page 3: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

今の仕事はPadrinoです

Page 4: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

提供するテーマ

アーキテクチャの選び⽅

Page 5: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

以前紹介したROGv

http://blog.parrot-studio.com/2012/05/gunmaweb9-you-can-create/

Page 6: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

最初の仕様:ver1.0

データ受付API✓

現在の戦況表⽰画⾯✓

データは最新のもののみ保持✓

Page 7: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

"Sinatraで⼗分"

Page 8: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

ver1.0のアーキテクチャ

Ruby1.9.x✓

Sinatra✓

データはファイルに保存✓

Page 9: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

その後の仕様:ver2.0〜

履歴をMongoDBに保持✓

履歴の確認✓

データの解析機能✓

データ肥大による⾼速化要求✓

Page 10: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

"Railsを使うほど大きくはないが、Sinatraでは構造化が難しい"

Page 11: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

よろしい、ならば

Padrinoだ(�゚Д゚)y─~~

Page 12: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

ver2.0以降のアーキテクチャ

Ruby1.9.x✓

Padrino✓

MongoDB✓

Page 13: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

転機:ver5.0

新ギルド戦対応✓

⽇付をまたいだデータ解析✓

Page 14: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

その結果・・・

重い(´・ω・`)✓

複雑化した構造✓

Page 15: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

追い打ち1

http://www.ruby-lang.org/ja/news/2013/02/24/ruby-2-0-0-p0-is-released/

Page 16: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

追い打ち2

Page 17: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

設計をやり直すか(´-ω-)

Page 18: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

そして完成

Page 19: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

"Gagnrath"

Page 20: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

Gagnrathサンプル1

Sample�:�http://ro.parrot-studio.com/rogvs

Page 21: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

Gagnrathサンプル2

Sample�:�http://ro.parrot-studio.com/rogvs

Page 22: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

Gagnrathのアーキテクチャ

Ruby2.0✓

Rails4(β1)✓

MariaDB�✓

Source�:�https://github.com/parrot-studio/gagnrath

Page 23: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

結果

速いΣ(゚Д゚;≡;゚д゚)✓

⼀から⾒直したことで構造もシンプルに(`・ω・´)�b

Page 24: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

素朴な疑問

Page 25: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

"だったら、最初からそうすべきだったのでは?"

Page 26: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

そうは⾔うがな大佐・・・

複雑化したのは「結果」✓

すでに運用しているシステムを⼀から作り直すというコスト

どんどんバージョンUPする⾔語/フレームワーク

新しい技術の出現Scala+Play�etc...✓

Page 27: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

But...

最初からスタンダードを選んでおけば移⾏コストはいらないのでは?

「枯れた技術」を使えばコストを下げられるのでは?

個⼈的なシステムだったからいいけど、仕事のシステムならばどうか?

Page 28: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

というわけで

Page 29: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

アーキテクチャの選び⽅

Page 30: ぱろっと、Padrinoやめるってよ

ぱろっと、Padrinoやめるってよ by�@parrot̲studio�for�#webcommcafe�2013/04/14

どう思いますか(´・ω・)?