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
GAE 也沒那麼糟糕
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
CQD
December 06, 2012
Programming
0
97
GAE 也沒那麼糟糕
好像一瞬間很多人吐嘈 GAE,平反一下...
CQD
December 06, 2012
Tweet
Share
More Decks by CQD
See All by CQD
開放原始碼的商業遊戲範例
cqd
1
180
Other Decks in Programming
See All in Programming
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
180
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
210
Smart Handoff/Pickup ガイド - Claude Code セッション管理
yukiigarashi
0
150
CSC307 Lecture 04
javiergs
PRO
0
660
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
140
Oxlintはいいぞ
yug1224
5
1.4k
高速開発のためのコード整理術
sutetotanuki
1
410
CSC307 Lecture 03
javiergs
PRO
1
490
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
180
AtCoder Conference 2025
shindannin
0
1.1k
AI巻き込み型コードレビューのススメ
nealle
2
1.3k
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.4k
Featured
See All Featured
Joys of Absence: A Defence of Solitary Play
codingconduct
1
290
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
320
What's in a price? How to price your products and services
michaelherold
247
13k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
320
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
1
57
Unsuck your backbone
ammeep
671
58k
Practical Orchestrator
shlominoach
191
11k
How to build a perfect <img>
jonoalderson
1
4.9k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
420
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
270
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Marketing to machines
jonoalderson
1
4.6k
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 也沒那麼糟糕