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
Serverlessのすゝめ
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
tanahiro2010
September 30, 2026
Programming
59
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Serverlessのすゝめ
ここにて登壇
https://serverlesslt.connpass.com/event/405525/
tanahiro2010
September 30, 2026
More Decks by tanahiro2010
See All by tanahiro2010
Terraformで素数をマイニングしたら、ブロックチェーンが生まれた 〜 Infrastructure as Code。つまりCode。なら何でもできますよね? 〜
tanahiro2010
0
51
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
310
東京で唐揚げを食べたら北海道の地理にたどり着いた件
tanahiro2010
0
37
Googleが発表した新Web標準ドラフト――WebMCP。実際どうなの? IO Extendedで実装・登壇して分かったこと
tanahiro2010
0
130
PHPの命名規則、結局camelCaseとsnake_caseどっちなんだ
tanahiro2010
0
41
Q. 底辺作家でも流行に乗れば舞えますか? A. はい。分析ランキング分析AIを使えば
tanahiro2010
1
87
OSSコミュニティがくれた「人との繋がり」
tanahiro2010
2
490
Serverlessしかなかったので、ブラウザに働いてもらいました
tanahiro2010
1
81
React Hooksを使いこなせ! ――初心者でも簡単。ポートフォリオ開発で実践するReact講座.pdf
tanahiro2010
0
38
Other Decks in Programming
See All in Programming
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
130
flutter_test のその先へ — Flutter アプリの LLM 機能に「評価」という品質保証を
kosukesaigusa
0
200
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
420
Getting Started with Vibe Coding
miccheng
0
190
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
11k
Crash Auto Pipelines
veronikapj
1
400
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
220
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
230
ActionController meets Protocol Buffers
sorah
1
800
protojson における文字化けの扱い
kazuki1023
0
210
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
370
Goコンパイラを作ってGoをもっと理解する / Build a Go compiler to better understand Go
ikura_hamu
0
130
Featured
See All Featured
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
370
Bash Introduction
62gerente
615
220k
Designing Experiences People Love
moore
143
24k
Crafting Experiences
bethany
1
430
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
60k
Un-Boring Meetings
codingconduct
0
490
The Cost Of JavaScript in 2023
addyosmani
56
10k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
480
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
320
Are puppies a ranking factor?
jonoalderson
2
4.2k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
370
Transcript
Google Developer Group のすゝめ Serverless とオンプレの比較を添えて Serverless Hirohisa Tanaka ·
2026/09/30
どうして自宅鯖なんてするの? Serverless の方が楽では? 2 Google Developer Group
面白そうだったから 3 Google Developer Group
を自分の言葉でいうと Serverless OS サーバーを触らずに サービスを公開できる ・ネットワーク・物理マシンの管理はプラットフォームに任せます 4 Google Developer Group
今回の「オンプレ」 学校に置いた 自分のサーバー 企業のデータセンターではなく、個人で管理する1台を指します 5 Google Developer Group
比べたのはこの5つ コスト ・ 開発のしやすさ スケール ・ 運用の難しさ セキュリティ 6 Google
Developer Group
実際に使った環境 実行環境 データ 管理 自分のサーバー Serverless Xeon E3-1200 v2 /
32GB RAM Vercel たくさん Ubuntu Server 20.04から自分で SSD 1TB + HDD 無料枠 無料枠 各プラットフォームに任せる Neon / Supabase 7 Google Developer Group
実例「やすみ?」 8 Google Developer Group
自分で面倒を見る範囲 Web アプリ「やすみ?」 → アプリ Docker → Ubuntu Docker Compose
ネットワーク ハードウェア 9 Google Developer Group
デプロイしたい ただそれだけなのに…… 10 Google Developer Group
オンプレの CI/CD GitHub Actions → Selfhosted Runner → Docker Build
→ Deploy 「pushしたらデプロイ」の前に、Runnerの登録・権限・Secrets・Docker操作・死活監視が必要でした 11 Google Developer Group
の CI/CD Serverless に GitHub push → GitHub Google Developer
Group Build / Deploy プラットフォー ム側 → と連携すれば、私が面倒を見るのはほぼアプリだけです 公開 12
同じアプリでも管理範囲が違います Serverless オンプレ アプリ ランタイム アプリ ランタイム OS OS ネットワーク
ハードウェア ネットワーク ハードウェア 13 Google Developer Group
「再起動するだけ」が結構重い 14 Google Developer Group
サーバー再起動後の確認 Docker DB コンテナは戻った? は応答する? ログに異常はない? cloudflared は起動した? サイトは外から開ける? ダウンタイムは?
再起動ボタンを押したあとは、1つずつ戻ったか確認します Google Developer Group 15
は ではない Serverless Server Less 16 Google Developer Group
「サーバーを考える範囲」を減らせます サーバーはある OS ・ネットワーク・再起動・ハードウェアを 利用者が意識する場面が少ない 17 Google Developer Group
コストの考え方 Serverless 始めるとき 動かすとき 壊れたとき 無料枠から試せる 利用量に応じて課金 プラットフォーム側が管理 オンプレ 本体とストレージが必要
電気代と回線費用 自分で修理・交換 私のサーバーは学校設置のため電気代を直接払っていません。 オンプレの電気代が無料という意味ではありません Google Developer Group 18
オンプレの強み 19 Google Developer Group
この自由度がやっぱり楽しい から 自分で触れる OS 好きなソフトを入れる Dockerを好きに組む PostgreSQLやRedisを立てる 常駐プロセスを動かす 20 Google
Developer Group
で「今」が見えます SSH hiro@server:~$ docker ps hiro@server:~$ htop hiro@server:~$ journalctl -u
docker hiro@server:~$ psql yasumi # ログも設定も、その場で確認できます 21 Google Developer Group
Docker + Cloudflare Tunnel app1.example.com → app1:3000 Internet → Cloudflare
Tunnel → app2.example.com → app2:8080 api.example.com → api:4000 ルーターで大量のポートを開けずに公開できます Google Developer Group 22
台にたくさん載せられます 1 サービス A サービス B サービス C サービス D
1台のサーバー 「とりあ えず ここに載 せる」 23 Google Developer Group
ただし落ちると全部落ちます 1 台のサーバー 停止 CPU Google Developer Group サービス A
停止 → サービス B 停止 サービス C 停止 ・RAM・ストレージもサービス同士で分け合います 24
つの「自由」 2 25 Google Developer Group
とオンプレの自由 Serverless Serverless 管理からの 自由 アプリ以外の運用を任せられます オンプレ 制約からの 自由 OS
や構成を好きなように作れます 26 Google Developer Group
どちらを選ぶ? を選びやすい Webアプリ / API / Bot Cron処理 アクセス量が読めない Serverless
オンプレ / VPSを選びやすい 長時間実行 / 常駐プロセス 動画処理 / 大容量ストレージ 特殊なミドルウェアが必要 27 Google Developer Group
両方使ってわかったこと は 面倒を肩代わりしている Serverless CI/CD ・ OS更新 ・ ネットワーク ・
DB ・ ログ ・ 障害対応 28 Google Developer Group
それでもオンプレを使う理由 SSH 自分で触れる ・ Docker ・ OS ・ DB ・
ネットワーク サーバーそのものが教材になります 29 Google Developer Group
こんなに面倒なのに、 なぜオンプレを使うの? Q. A. 面白いから 30 Google Developer Group
結局どちらも使います でサービスを作り オンプレでサーバーを楽しみます Serverless 31 Google Developer Group
Thank you! Serverless もオンプレも面白いです! 32 Google Developer Group