Upload
kazunori-sato
View
2.718
Download
3
Embed Size (px)
DESCRIPTION
Citation preview
Google App Engine とappengine ja night
スティルハウス 佐藤一憲
自己紹介• スティルハウス 佐藤一憲
– twitter: @kazunori_279– ブログ : 「スティルハウスの書庫」– Web: http://www.sth.co.jp/
• コミュニティ活動– appengine ja night– Google API Expert (App Engine)– jsonengine and s3blazeds committer
• 主なお仕事– 開発 : Adobe Flex/AIR 、 Rails 、 GAE/J– テクニカルライティングや翻訳(ペンネーム吉川和巳)– セミナー講師など
Google App Engine とは
Google App Engine とは
• Google App Engine とは– Web アプリホスティングサービス
• 自分のアプリを Google のクラウド上で運用できる
– 2008 年 4 月に Python 版リリース– 2009 年 4 月に Java 版リリース
Google App Engine とは
• 利用状況( 2010 年)– 10 億 PV /日( mixi と同程度) – 開発者の増加は 10 万人/月– アプリの増加は 15 万件/週
mixi app "Funyamorake"
• by Piisu Co. (@funyamora)• 6.3M reqs/day• about $15/day• Flash+GAE/J LL API
Sport SNS "LaBOLA"
• by LUXEYS– @najeira
• GAE/Py• Requirements:
– 100M PV/month
– Autoscaling
Web UI for Sony BD Recorders "Chan-Toru beta"
• by VisionArts• for PC and
Smartphones• Open ID• GAE/J (Slim3)
– Global tx
Groupon-type EC "Buy7ow"
• by Prophet Co.– @knj77
• Web-scale system for social marketing
• GAE/J (Slim3)– Global tx
App Engine のすごいところ
• App Engine のすごいところ– 「 2 ケタ安」の圧倒的な低コスト– どこまでもスケール+高可用性– 開発・運用環境が構築不要
「 2 ケタ安」の低コスト
• 無償分と有償分– 初期コストはゼロ– 無償分だけでも“ 400 万 PV /月相当を運用可能”
無償提供分 有償提供分の単価
ストレージ容量 1G バイト $0.15 / 1G バイト ×1か月
ネットワーク帯域(上り)
1G バイト/ 1 日 $0.10 / 1G バイト
ネットワーク帯域(下り)
1G バイト/ 1 日 $0.12 / 1G バイト
CPU 時間 6.5 時間/ 1 日 $0.10 / 1 時間
メール受信件数 2000 件/ 1 日 $0.0001 / 1 件
「 2 ケタ安」の低コスト
• 「ふにゃもらけ」の事例– Mixi アプリを App Engine で提供– 1 日 600 万 PV 以上(月 1.8 億 PV 相当)– Google からの請求は 1 日 $15 (月額 4 万相
当)• スティルハウス担当事例
– 従来はデータセンターのサーバーを 1 台使用– 400 万件のデータ(約 11GB )を App Engine
移行– 月額 $4– サーバー管理者が不要に
どこまでもスケール+高可用性• Google のクラスタ環境を簡単に利用できる
– 自動クラスタリングによる負荷分散と高可用性– 負荷状況に応じて App Server を動的に増減 – アプリ間の隔離性を維持、個々のアプリの安全性と
パフォーマンスを確保• Bigtable のスケーラビリティ
– RDB につきもののスケーラビリティ上限がない– 一方で制約もある
• テーブル間の結合( join )ができない• トランザクションの整合性保証の範囲を限定している
Google App Engine Stack の構成
• Google App Engine Stack の構成
スケールアウト事例• "Open For Questions" のトラフィック推移
開発・運用環境が構築不要
• 統合開発環境を提供 – サーバーの構築や管理が不要。デプロイが容
易• 管理コンソールを提供
– ログ管理、管理コンソールや各種ツールを提供
最近の API やサービス• Task Queue
– 非同期な分散処理のためのキューサービス• Channel API
– Comet/WebSocket による push 通信• Matcher API (予定)
– Prospective query など向けのマッチング機能• Google App Engine for Business (予定)
– SQL データベース– SLA 、サポートなど
appengine ja night とは
about "appengine ja night"
• Community events for App Engine developers
• Since Oct 2009 • Events
• appengine ja night (monthly)• appengine ja night in kansai
• by GTUG Kyoto (@bufferings)
• appengine ja hack-a-thon• by @marblejenka and @shin1ogawa
• appengine ja night Sapporo• by @shuji_w6e
appengine ja night sessions
Date Sessions # of regs Place
ajn#1 Oct 2009
"JDO pitfalls" by @higayasuo"Low Level API + Unit testing" by @shin1ogawa
31 Google Tokyo
ajn#2 Oct 2009
"JDO pitfalls" by @higayasuo"Low Level API + Unit testing" by @shin1ogawa
73 Recruit MTL
ajn#3 Dec2009
"Best practices on production apps" by @bluerabbit777jp"How to create a scalable apps" by Takezaki-san
71 Gree
ajn#4 Jan 2010
"DSL driven development on GAE" by @asami 224"App Engine transaction puzzlers" by @ashigeru
95 Recruit MTL
ajn#5 Feb 2010
"App Engine Anti-patterns" by @tmatsuo"Global Transaction" by @higayasuo
124 Gree
ajn#6 Mar2010
"Global Transaction" by @ashigeru and @higayasuo 127 Recruit MTL
ajn#7 Apr 2010
"Unit testing on GAE" by @shin1ogawa"GAE Q&As" by @shin1ogawa
140 Gree
ajn#8 Jun 2010
"Using GAE on building Sport SNS site" by @najeira"Fast aggregation by skip list" by @koher
130 Recruit MTL
ajn#9 Jul 2010
"Understanding Query" by @bufferings"Next Gen Query" by @kazunori_279
108 the Canteen
ajn#10 Aug2010
"Slim3 on App Engine" by @higayasuo"Mirah and Dubious" by @headius and @johnwoodell"Google Apps Marketplace + GAE" by @nakajiman"DaVinciPad on GAE/J" by @shumpei
120 Google Tokyo
Bigtable & Slim3
• by @higayasuo• Slim3
• slim3.org • Full-stack MVC for
GAE/J• "Less is More“• De facto Standard
framework in Japan
Test Driven Development on App Engine
• by @shin1ogawa
Mirah and Dubious
• by @headius and @johnwoodell
How to attend?
• Announcements:
@appengineja on twitter
Google App Engine Japan ML• Links to the appengine ja night reports
http://bit.ly/dD2fUu• Meet us at Developer Sandbox ajn booth!