10. What is Serverless?
• 文字通りサーバーがないわけではない
• 開発者がサーバーを意識する必要がない
• よりコードに注力して開発が出来る
• イベントをトリガーとして関数(Function)を実行する
• Function as a Service(FaaS)
• いわゆるPaaSとは異なる
• イベント毎にプロセスが起動し終了する
11. Serverless Compute
Manifesto
• Function are the unit of deployment and scaling.
• No machines, VMs, or containers visible in the programming
model.
• Permanent storage lives elsewhere (SLE).
• Scales per request; Users cannot over- or under-provision
capacity.
• Never pay for idle (no cold servers/containers or their
costs).
• Implicitly fault-tolerant because functions can run anywhere.
• Bring Your Own Code (BYOC).
• Metrics and logging are a universal right.
15. What is Azure Functions?
• 多数のトリガーを設定可能
• Timer
• Webhooks
• Consmos DB
• Storage(Blob, Queue)
• Azureサービスとの連携が非常にお手軽
• Binding機能により容易に連携が可能
16. What is Azure Functions?
• 強力なBinding機能
• データの入出力を関数で利用する際に、連携部分を抽象
化したもの
• context.bindings.hoge = (…データ…)
ex)JavascriptでCosmosDBへJSONを保存するコード
17. What is Azure Functions?
• Visual Studioシリーズとの高い親和性
• VS for MacやVSCodeでも開発が捗る
• 開発だけでなく、デプロイまで可能
• ローカルデバッグも可能
• 2種類のプラン
• Consumption Plan(Batch的な処理におすすめ)
• App Service Plan(WebAPIにおすすめ)