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
Herokuの無料プランで月間100万PVをさばく(さばかない)話
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
o_tomomichi
February 04, 2018
Technology
8.9k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Herokuの無料プランで月間100万PVをさばく(さばかない)話
o_tomomichi
February 04, 2018
More Decks by o_tomomichi
See All by o_tomomichi
個人開発からのんびり育てる意識低いWebサービス開発の話 / Easy going web development
tomomichi
0
2.1k
個人開発を支える何も作らない技術 / No Devs No Bugs
tomomichi
3
1.2k
FirebaseでSPAするときのSEO/OGP対応もうこれでいいんじゃないですか2018暫定版
tomomichi
1
7.8k
Other Decks in Technology
See All in Technology
ASTを使って影響範囲を特定する
nealle
0
140
AIで開発は速くなったのに、なぜ現場は楽にならないのか 〜あなたの組織のボトルネックを突き止めるワークショップ〜
jacopen
1
310
AIオーケストレーションを活用した 開発ワークフローの設計と実践
bqnq
0
130
module Synths; end
asonas
1
130
HRC_Frontend_Conference_Fukuoka_2026.pdf
ts020
0
320
2026-09-11 【Snowflake World Tour Tokyo 2026】Snowflakeを起点に、AI Agentが自律稼働し続ける未来へ / Driving AI Agents with Snowflake
civitaspo
0
280
リージョンの壁を越える、 ちょっと変わったAWSサービスの話
falken
PRO
1
300
生成AIのテナント制御とシャドーMCP対策 | AIを"止めずに"、情報を守る
yukun
0
140
Sigmaで作る業務アプリ
kazushiro_honma
0
110
enechainの内製セルフサービスプラットフォーム
hiyosi
0
150
プロダクト思考 × 基盤思考を AIで実現する Compound Engineering
tkc66buzz
1
310
Driving AI Adoption Using In-House GPUs to Serve Qwen
po3rin
2
480
Featured
See All Featured
Side Projects
sachag
456
43k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
320
Large-scale JavaScript Application Architecture
addyosmani
515
110k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
The Language of Interfaces
destraynor
162
27k
We Have a Design System, Now What?
morganepeng
55
8.3k
Odyssey Design
rkendrick25
PRO
2
800
A designer walks into a library…
pauljervisheath
211
25k
4 Signs Your Business is Dying
shpigford
187
23k
A Modern Web Designer's Workflow
chriscoyier
699
190k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
Transcript
Herokuの無料プランで 月間100万PVを さばく(さばかない)話 @Heroku Meetup #19 Heroku Trust!
自己紹介 • なんちゃってWebエンジニア • ぼっちWebサービス開発 • 合同会社を準備中(がんばる) おおにし @NOT SO
BAD
ニッチなWebサービスを作る性癖があります トーナメント作成サービス 【THE TOURNAMENT】 年表作成サービス 【THE TIMELINE】 Rails Heroku Riot.js
Firebase
簡単・便利なトーナメント表作成サービス
THE TOURNAMENTの話 ・細々と4年前から運用 ・意外と法人利用が多い ・売上もある(儲かってはない) ・ときどきアクセス跳ねるけど、基本 FreeDynoのみで運用
None
THE TOURNAMENT埋め込みパーツ(iframe)
間接Yahoo!砲
(余談) 埋め込みパーツの提供は ツール系サービスの集客にGood
(やっと本題) システム構成どうしてるか
更新系と閲覧系を別にする Heroku Google Cloud Storage
【THE TOURNAMENT】 Heroku GCS 【外部サイト】 更新 閲覧 閲覧 静的HTMLを出力
• かなり安い • 十分速い • スケールの心配ゼロ
https://note.mu/konpyu/n/nb424a9a2ea8a
やり方が違う(Fastly)だけで コンセプトはたぶん同じ。
Edge Server 【Fastly】 Origin Server 【Heroku】
たぶんFastlyが正解という前提で、GCSのメリット • 固定料金「$25/月〜」(Heroku Fastly Addon)が不要 →Addonの最低料金は静的アセットの前提?動的コンテンツ のキャッシュはもっとかかるのかも(知らない) →アクセスが多いとGCSでも多少お金かかるけどね • 導入が簡単・メンテナンスしやすい
→困ったらStorage見れば状態がわかる →3年間ほぼトラブルなし
GCS方式のデメリット • 即時削除(Instant Purge)ができない →エッジキャッシュを諦めた。。 →元々east asiaのDRAなので、そんなに課題感ないかも • 別ドメインになっちゃうことによるSEO問題 →(次ページ)
CDNの場合、アクセス先のドメインは常に同じ https://the-tournament.jp https://the-tournament.jp
GCS方式だと、どうしても別ドメインになる User https://the-tournament.jp User Edge Server Origin Server Heroku GCS
https://app.the-tournament.jp
解決案:Heroku側にcanonical向けてやれば…? User https://the-tournament.jp User Edge Server Origin Server Heroku GCS
https://app.the-tournament.jp <link rel="canonical" href="...">
canonicalは別ドメインでも有効。 でも最近知ったのでまだ未検証。 もっと早く知っていれば...
まとめ
ちゃんとしたサービスなら Fastly使いましょう
でもうちみたいな弱小サービスなら GCS(S3)形式もワンチャンあるのでは
Thank you.