Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
GAE 也沒那麼糟糕
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
CQD
December 06, 2012
Programming
100
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
GAE 也沒那麼糟糕
好像一瞬間很多人吐嘈 GAE,平反一下...
CQD
December 06, 2012
More Decks by CQD
See All by CQD
開放原始碼的商業遊戲範例
cqd
1
210
Other Decks in Programming
See All in Programming
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
Agents on Rails - Rails at Scale 2026
irinanazarova
0
570
ActionController meets Protocol Buffers
sorah
0
550
APNsからLive Activityを開始する話
yumnumm
0
170
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
R8 の設定見直しでアプリサイズ削減
andpad
0
220
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
220
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
220
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
Featured
See All Featured
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
410
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
We Have a Design System, Now What?
morganepeng
55
8.4k
We Are The Robots
honzajavorek
0
400
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
Transcript
GAE 也沒那麼糟糕
Google App Engine
OSDC 2012 對 GAE 怨念很深
None
None
None
不過我⽤用 GAE 的經驗 還沒那麼糟
- 有⼀一堆愚蠢的測驗 - 輸⼊入名字跳出蠢結果 - 可以⾃自製新測驗
- 有⼀一堆愚蠢的測驗 - 輸⼊入名字跳出蠢結果 - 可以⾃自製新測驗 算 Hash 當 Key
從數個陣列裡⾯面撈字串
撈測驗資料 名字算 HASH 組合結果字串 記錄測驗執⾏行次數 回傳 JSON
最⼤大流量 • 20 萬次結果 • 80 萬 req • 11
萬獨⽴立訪客 • 3GB/day • ~80 req/sec • 1.5 萬獨⽴立訪客/hr • ~80KB/sec
最⼤大流量 • 20 萬次結果 • 80 萬 req • 11
萬獨⽴立訪客 • 3GB/day • ~80 req/sec • 1.5 萬獨⽴立訪客/hr • ~80KB/sec 出帳的費⽤用是 0.26 美⾦金 不過還是要付低消 2.1$/week
我在意的點 • Datastore 存取 • Bandwidth • Instance Hour •
Other API usage
⼀一些想法
Cache
Cache Everything
撈測驗資料 名字算 HASH 組合結果字串 記錄測驗執⾏行次數 回傳 JSON Datastore Datastore
撈測驗資料 名字算 HASH 組合結果字串 記錄測驗執⾏行次數 回傳 JSON Datastore Datastore Memcache
撈測驗資料 名字算 HASH 組合結果字串 記錄測驗執⾏行次數 回傳 JSON Datastore Datastore Memcache
Staged in memory
撈測驗資料 名字算 HASH 組合結果字串 記錄測驗執⾏行次數 回傳 JSON Datastore Datastore Memcache
Staged in memory
• 節省 Datastore 操作 • 更快的 response time • 對「被瘋狂轉載的連結」有抵抗⼒力
• Cache 所有的 datastore query? • Objectify? • 預先載⼊入到 Memory?
• Local variable vs Memcache
Javascript
HTML vs AJAX 2.5KB vs 150Byte
Minify helps bandwidth with no price
<threadsafe>
None
Request is free Channel 好貴,polling 吧
結論
要多花點時間 但也沒那麼難搞
GAE 也沒那麼糟糕