0
1

Azure と AWS の サーバーレス コンピューティングの主要な違いを個人的に比較

Posted at

Azure Functions と AWS Lambda は、どちらもサーバーレスコンピューティングの主要サービスであり、多くの類似点がありますが、重要な違いも存在します。
この比較では、機能面、性能面、そして特徴的な機能に焦点を当てて両サービスを詳細に比較します。

機能面の比較

サポートするプログラミング言語

  • Azure Functions: C#, Java, PowerShell, Python, JavaScript, TypeScript 1
  • AWS Lambda: C#, Java, PowerShell, Python, Go, Ruby 2

トリガーとバインド/イベントソース

  • Azure Functions: Azure の各種サービス、タイマー、Webhook など 3
  • AWS Lambda: AWS の各種サービス 4
    • タイマーを使用する場合は CloudWatch 等を利用5
    • Webhook を使用する場合は API Gateway 等を利用6

性能面の比較

最大実行時間

  • Azure Functions: 従量課金プランであれば 10 分、それ以外の構成なら無制限 7
  • AWS Lambda: 15 分 8

最大メモリ割り当て

  • Azure Functions: 従量課金プランであれば 1.5 GB, それ以外の構成なら構成次第で 14 GB など 7
  • AWS Lambda: 10,240 MB(10 GB) 8

その他

個人的に、非常に大きな特徴と考えているポイントは下記です。

Azure Functions の特徴: Durable Functions の存在

ステートフルに複数の Functions を連携させたり、非同期な API を構成したりできます。

AWS だと同様の仕組みは Step Functions の利用を検討すると良いかもしれません。

AWS Lambda の特徴: コンテナを動かす場合も固定費無し

Azure Functions の場合はコンテナを動かす場合に従量課金プランは使用できず固定料金がかかりますが、AWS Lambda の場合は追加料金が不要で動かした分だけ課金です。
(コンテナを用意するための ECR リポジトリの料金は必要)

Azure でコンテナを従量課金で動かしたい場合は、Container Apps の利用を検討すると良いかもしれません。

  1. https://learn.microsoft.com/ja-jp/azure/azure-functions/supported-languages

  2. https://aws.amazon.com/jp/lambda/faqs/

  3. https://learn.microsoft.com/ja-jp/azure/azure-functions/functions-triggers-bindings

  4. https://docs.aws.amazon.com/lambda/latest/dg/lambda-services.html#listing-of-services-and-links-to-more-information

  5. https://docs.aws.amazon.com/ja_jp/sdk-for-javascript/v3/developer-guide/scheduled-events-invoking-lambda-example.html

  6. https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/services-apigateway.html

  7. https://learn.microsoft.com/ja-jp/azure/azure-functions/functions-scale 2

  8. https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/gettingstarted-limits.html 2

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1