「[[マイクロソフト系技術情報 Wiki>http://techinfoofmicrosofttech.osscons.jp/]]」は、「[[Open棟梁Project>https://github.com/OpenTouryoProject/]]」,「[[OSSコンソーシアム .NET開発基盤部会>https://www.osscons.jp/dotNetDevelopmentInfrastructure/]]」によって運営されています。 -[[戻る>AzureのPaaS]] --FaaS ---[[Azure WebJobs]] ---Azure Functions ---[[Azure API Management]] --CaaS ---[[Azure Kubernetes Service (AKS)]] ---[[Azure Container Instances (ACI)]] ---[[Azure Web App for Containers]] ---Azure Functions on Docker --Tools ---[[Visual Studio Tools for Docker]] ---[[Visual Studio Code Docker extension]] --Container Registry ---[[Azure Container Registry]] ---[[Microsoft Container Registry]] * 目次 [#h7b1e263] #contents *概要 [#x753c10b] イベント駆動のアプリケーションを処理するサービス -[[サーバレス・アーキテクチャ>https://dotnetdevelopmentinfrastructure.osscons.jp/index.php?%E3%82%B5%E3%83%BC%E3%83%90%E3%83%AC%E3%82%B9%E3%83%BB%E3%82%A2%E3%83%BC%E3%82%AD%E3%83%86%E3%82%AF%E3%83%81%E3%83%A3]] -[[Azure WebJobs]]の後継 -非常駐型のプロセスをイベントによってトリガーして実行する。 --イベント駆動の「機能」実行プラットフォーム --柔軟で強力なスクリプト実行環境 --HTTP APIのエンドポイントとして公開可能 --様々なプログラミング言語に対応~ C#, Node.js/Javascript, F#, Python,~ PHP, Batch, [[Bash]], PowerShell -コールドスタートが非常に遅いと言う話は、~ ホスティング オプションで対応するのが一般的らしい。 -[[Linux>#y7309979]] や [[Docker>#g6815813]]にも対応。 *詳細 [#l0fb6568] **メリット・デメリット [#e3e9878e] ***メリット [#ece46991] -インフラを抽象化し設計者はビジネス、開発者はコードに注力 --データやリソースの連携部分を抽象化 --任意の処理が実装・実行 --業務要件に応じた自動的にスケーリング -料金的/時間的なコストの低さ --利用開始のコストは低く --簡単に体験できる ***デメリット [#m6a3f4fb] 強いて言えばロックインされること。 **バインディングとトリガー [#p7474b4b] ***バインディング [#neb45d8b] ***トリガー [#a62f6732] -HTTP --サービスへ接続するもっとも簡単な方法 --簡単に作成でき、ワークフローを自動化 -WebHook --非同期処理の要求を受信するエンドポイント --ASP.NET のWebHook libraryを使えば、token検証機能を利用可能 -タイマー~ Cronの表現方法で記述可能 **[[FaaS config]] [#e1b8501a] **on Linux and Docker [#a7dd02f6] *Azure Function on Linux and Docker [#a7dd02f6] **Azure Function on Linux [#y7309979] ***Azure Function on Linux [#y7309979] -OSはUbuntu -C#はmono?(今ならCoreや.NET5だろうか? **Azure Function on Docker [#g6815813] ***Azure Function on Docker [#g6815813] -Azure function runtimeのDockerイメージを利用して、 -自分のDockerイメージをAzure Functionにデプロイできる。 **[[FaaS config]] [#e1b8501a] *参考 [#n4cf16dc] **Qiita [#i09a29c3] -さーばーれす あーきてくちゃ…?~ Azure Functionsでサーバーレスアーキテクチャが何かを理解する記事~ https://qiita.com/hat22/items/f7b2aec5211951dd7622 -LinuxベースのAzure Function Appの作り方(CLIベースでの開発方法)~ https://qiita.com/567000/items/36a87ee087628a548bb9 -LinuxとDockerで入門するAzureのサーバレス~ https://qiita.com/cvusk/items/f3ded5db2c95e8bf78bc **microsoft.com [#sb4d8b2d] -Azure Functions – Cloud Solution Architect チームブログ~ https://blogs.technet.microsoft.com/azure-sa-members/azurefunctions/ ***Microsoft Azure [#r11b7715] -Azure Functions サーバーレス コンピューティング~ https://azure.microsoft.com/ja-jp/services/functions/ -Azure の更新情報 --Linux 上での Azure Functions~ https://azure.microsoft.com/ja-jp/updates/azure-functions-on-linux/ --Azure Functions Premium プランでの Linux のサポート~ https://azure.microsoft.com/ja-jp/updates/linux-support-on-azure-functions-premium-plan/ ***Microsoft Docs [#q57a269a] -Azure Functions のドキュメント~ https://docs.microsoft.com/ja-jp/azure/azure-functions/ --Visual Studio Code を使用して C# 関数を作成する - Azure Functions~ https://docs.microsoft.com/ja-jp/azure/azure-functions/create-first-function-vs-code-csharp -Azure Functions のスケールとホスティング~ https://docs.microsoft.com/ja-jp/azure/azure-functions/functions-scale --Linux 上で Azure portal から Function Appを作成する~ https://docs.microsoft.com/ja-jp/azure/azure-functions/create-function-app-linux-app-service-plan --カスタム イメージを使用して Linux 上で Azure Functions を作成する~ https://docs.microsoft.com/ja-jp/azure/azure-functions/functions-create-function-linux-custom-image **Azure Function on Linux and Docker [#n7d36066] ***Azure Function on Linux [#i8923728] ***Azure Function on Docker [#f0162ce0] -Azure FunctionsのDocker版をローカルで起動する | Moonmile Solutions Blog~ http://www.moonmile.net/blog/archives/9739 -Azure Functions on Linux にカスタムのイメージをデプロイする - ROMANCE DAWN for the new world~ https://gooner.hateblo.jp/entry/2018/01/22/070743 ---- Tags: [[:クラウド]], [[:コンテナ]], [[:Azure]]