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
Inside Azure Functions
Search
Tatsuro Shibamura
June 09, 2017
Programming
0
78
Inside Azure Functions
Tatsuro Shibamura
June 09, 2017
Tweet
Share
More Decks by Tatsuro Shibamura
See All by Tatsuro Shibamura
# Azure Cosmos DB パフォーマンス最適化入門 - 設計・開発・運用の実践テクニック
shibayan
0
380
Hack Azure! #5 - Geek of Azure Serverless
shibayan
0
95
.NET Conf 2020 Online - .NET 5 リリース記念パーティートーク
shibayan
0
9k
Terraform Provider for Azure に貢献してみた話
shibayan
0
600
Azure Functions と SendGrid の良い関係
shibayan
0
1.2k
Azure Serverless を活用したリアルタイム Web のすべて
shibayan
1
2.9k
祝 東日本リージョン一般提供! Azure Application Insights 基礎と実践
shibayan
1
41k
なかなか楽にならないSSL/TLS証明書の話
shibayan
2
1.8k
.NET Conf 2018 Tokyo
shibayan
1
4k
Other Decks in Programming
See All in Programming
エンジニアインターン「Treasure」とHonoの2年、そして未来へ / Our Journey with Hono Two Years at Treasure and Beyond
carta_engineering
0
480
Software Architecture
hschwentner
6
2.4k
テーブル定義書の構造化抽出して、生成AIでDWH分析を試してみた / devio2025tokyo
kasacchiful
0
370
ビルドプロセスをデバッグしよう!
yt8492
0
230
CSC509 Lecture 11
javiergs
PRO
0
290
One Enishi After Another
snoozer05
PRO
0
180
Vue 3.6 時代のリアクティビティ最前線 〜Vapor/alien-signals の実践とパフォーマンス最適化〜
hiranuma
2
370
alien-signals と自作 OSS で実現する フレームワーク非依存な ロジック共通化の探求 / Exploring Framework-Agnostic Logic Sharing with alien-signals and Custom OSS
aoseyuu
3
5.5k
フロントエンド開発のためのブラウザ組み込みAI入門
masashi
7
3.7k
Migration to Signals, Resource API, and NgRx Signal Store
manfredsteyer
PRO
0
140
Pythonに漸進的に型をつける
nealle
1
150
Claude Agent SDK を使ってみよう
hyshu
0
1.5k
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
463
33k
Agile that works and the tools we love
rasmusluckow
331
21k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.8k
Java REST API Framework Comparison - PWX 2021
mraible
34
8.9k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.3k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Typedesign – Prime Four
hannesfritz
42
2.9k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.3k
Raft: Consensus for Rubyists
vanstee
140
7.2k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
4 Signs Your Business is Dying
shpigford
186
22k
Transcript
Inside Azure Functions しばやん(@shibayan)
Azure Functions とは • AWS Lambda の Azure 版 2
Azure Functions とは • イベント駆動型のコンピューティングプ ラットフォーム • ブラウザだけで処理を書ける – C#
/ Node.js / Batch / PHP など 3
Azure Functions で出来ること • そういうのは偉い人()に任せた – @kosmosebi とか、ブチザッキの人とか • 中身の方が気になる
– 仕組みが分かっていないと安心して使えない 4
例えば… • 「Azure Functions 使えばサーバーレ スで簡単に処理を書けるんやで!」 • 「IIS の下で動くんやろ、それリサイクル 走った時どうなんの。特に
TimerTrigger の精 度なんて IIS 次第やろ。そもそも Web App は アクセスが無かったらインスタンス落ちるやろ、 そういうところどうなってんの。担保するため 5
基本は App Service • 実行環境は Web App と全く同じ • Functions
Site Extension が有効化 6 コレ
Web App と同じ利点 • Web App と同じ機能、設定が使える – App Settings
– Connection Strings – Kudu / Site Extension • ものすごく便利!! 7
2 つの Service Plan • Classic App Service Plan –
これまでと同じ課金、SKU (F/B/S/P) • Dynamic Service Plan – 実際に使った分だけ課金(CPU/MEM) – リクエスト数(100 万単位) 8
Dynamic Service Plan • D12 v2 インスタンス利用 – Haswell 世代
Xeon E5-2673 v3 4 コア – 28GB メモリ – ストレージは Azure Files • Dynamic Service Plan は速い 9
価格について • 4/22 に公開されるらしい? 10
まとめ • 実績のある Web Apps 上に構築 – IIS 以下で動いてることは覚えておきたい •
Azure Functions は強い(こなみ 11
終わり ご清聴ありがとうございました? 12
問題: 常時起動するのか? 1. してないと Event Hub 使えんやろ 2. Always On
使いたいならお金を払え (Basic 以上じゃないとダメ) 3. 使えるけど、設定が必要になるんやで 13
答え: 1 • Always On 使ってないけどします • どっかのサーバーが勝手に GET を投げる
ようになっている 14
問題: Node.js のバージョン 1. かなり古いやつ (v0.10.24) 2. WEBSITE_NODE_DEFAULT_VERSION で設定されているバージョン (v4.1.2)
3. 最新バージョン (v5.9.1) 15
答え: 3 • 最新バージョンが使われる • Edge.js のバージョンが 5.9.1 だから –
node.dll を内包しているため、Web App の 設定とは完全に独立 16
終わり ご清聴ありがとうございました? 17
補足: Functions の実行 • C# / Node.js – IIS ワーカープロセス内で実行される
• それ以外 – 子プロセスとして実行される 18
補足: メータリング • Web Apps のメトリックを使う(多分 – CPU とメモリ •
リクエスト数は謎 – Kudu が使ってる分は課金対象になる? 19
補足: Functions ランタイム • Azure WebJobs SDK Script – https://github.com/Azure/azure-
webjobs-sdk-script • Azure Functions Portal – https://github.com/projectkudu/AzureFu nctionsPortal 20
終わり ご清聴ありがとうございました 21