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
さっちゃん
August 31, 2016
Programming
660
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Serverless
\Serverless/
さっちゃん
August 31, 2016
More Decks by さっちゃん
See All by さっちゃん
敎へない敎師と、考へる機械
ne_sachirou
0
32
火星曆
ne_sachirou
0
59
みんなのオブザーバビリティプラットフォームを作ってるんだがパフォーマンスがやばい #mackerelio #srenext
ne_sachirou
0
1.8k
作ってよかったgraceful shutdownライブラリ #kyotogo
ne_sachirou
0
1.5k
path 依存型って何?
ne_sachirou
0
880
野生の onbording と onbording 設計 #kyototechtalk
ne_sachirou
0
770
メトリックはいかにして見え續ける樣になったか #devio2022
ne_sachirou
0
150
名實一致
ne_sachirou
0
790
まかれるあなとみあ ―Mackerel のしくみを理解する 30 分― @ Hatena Engineer Seminar #16
ne_sachirou
0
3.4k
Other Decks in Programming
See All in Programming
WebRTC映像をAirPlayに対応させる挑戦.pdf
monolithic_adam
0
340
CodeRabbitの効果検証と過ごしてみた3ヶ月
armondando
0
170
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
4.9k
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
7
2.4k
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
190
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
550
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
7.6k
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
450
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
160
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
490
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
320
パーソナライズPodcastを作った話
repunit11
0
120
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
260
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
260
What's in a price? How to price your products and services
michaelherold
247
13k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
340
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
510
The Mindset for Success: Future Career Progression
greggifford
PRO
0
530
[SF Ruby Conf 2025] Rails X
palkan
3
1.4k
Faster Mobile Websites
deanohume
310
32k
Transcript
Serverless
Serverless λ
None
.。oO(さっちゃんですよヾ(〃l _ l)ノ゙☆)
Serverless
FaaS
FaaS (Function as a Service)
FaaS (函數 as a Service)
例へば AWS Lambda Google Cloud Functions Azure Functions IBM OpenWhisk
等
例へば AWS Lambda Google Cloud Functions Azure Functions IBM OpenWhisk
等
Serverless PaaS、IaaS、BaaSとは何が違ふの?
Serverless Serverless Architectures http://martinfowler.com/articles/serverless.html
Serverless FaaSはfull managedでstateless
Serverless If your PaaS can efficiently start instances in 20ms
that run for half a second, then call it serverless. https://twitter.com/adrianco/status/736553530689998848
Serverless 0.02秒でインスタンスを起動し0.5秒だけ動作するなら、その PaaSはserverless。
Serverless (Erlangっぽいよね)
AWS Lambda 対応⾔語は Python 2 Node.js Java 8
AWS Lambda λを呼び出せるイベントは LambdaのHTTP API、AWS IoT、API Gateway、CloudWatch Schedule、CloudWatch Logs、CognitoのSync、DynamoDBの 更新、Kinesis、S3の更新AWS
SNS
AWS Lambda λから使へるリソースは AWSの全部、 AWS外のAPIで呼べるリソースも何でも
AWS Lambda バージョン管理 → 函數バージョンにエイリアスを付ける Log → CloudWatchに吐く 監視 →
CloudWatchで API Gatewayでの認證 → 認證⽤のLambdaを呼ぶ
AWS Lambda フレームワークには Serverless Apex 等
AWS Lambda フレームワークには Serverless Apex 等
Serverless Framework https://serverless.com/
Serverless Framework Nearly 1.0 (1.0.0-beta2)
Serverless Framework 10,316☆stars on GitHub
Serverless Framework pluggable
Serverless Framework プロジェクト = 函數とイベントとリソースの集まり
Serverless Framework AWS Lambda Google Cloud Functions Azure Functions IBM
OpenWhisk に対応してゐる
λとAPI Gatewayとの連携
λとAPI Gatewayとの連携 Terraformでやる場合
λとAPI Gatewayとの連携 API GatewayとLambdaの組み合はせでリリースするバージョンを制御する - c4se記:さっちゃんで すよ☆ http://c4se.hatenablog.com/entry/2016/07/26/122508 29,238⽂字 Terraformのmoduleを書く
- c4se記:さっちゃんですよ☆ http://c4se.hatenablog.com/entry/2016/08/09/152619 11,198⽂字
λとAPI Gatewayとの連携 死
λとAPI Gatewayとの連携 死
λとAPI Gatewayとの連携 死
λとAPI Gatewayとの連携 コードのデプロイ⼿順
λとAPI Gatewayとの連携 最初のデプロイ: 1. aws_lambda_alias.prodのfunction_versionを "$LATEST" にしておく。Lambda函數作成前で、publish_versionも してゐずバージョンが未だ無い爲。 2. LambdaとAPI
Gatewayをデプロイ。 3. API Gatewayをstagingステージにデプロイ。 4. stagingで検証。 5. Lambdaをpublish_versionして、Versionをメモする。 6. aws_lambda_alias.prodのfunction_versionを 上でメモしたバージョンに書き換へる。 7. Lambdaをデプロイ。 8. API Gatewayをprodステージにデプロイ。 API Gatewayの設定を更新した場合: 1. API Gatewayをデプロイ。 2. API Gatewayをstagingステージにデプロイ。 3. stagingで検証。 4. API Gatewayをprodステージにデプロイ。 Lambdaの設定やコードを変更した場合: 1. Lambdaをデプロイ。 2. stagingで検証。 3. Lambdaをpublish_versionして、Versionをメモする。 4. aws_lambda_alias.prodのfunction_versionを 上でメモしたバージョンに書き換へる。 5. Lambdaをデプロイ。
λとAPI Gatewayとの連携 死
λとAPI Gatewayとの連携 死
λとAPI Gatewayとの連携 死
λとAPI Gatewayとの連携 ⼀⽅、Serverlessでは s-function.json 2628⽂字
λとAPI Gatewayとの連携 `sls deploy`
λとAPI Gatewayとの連携 やりましたね!
Serverless
Serverless 0.02秒でインスタンスを起動し0.5秒だけ動作するなら、その PaaSはserverless。