LoginSignup
0
2

More than 1 year has passed since last update.

[App Service]Web AppsとAPI Appsの違いとは

Posted at

はじめに

App Service
  |-web apps
  |-API apps

上記の関係前提で喋ってます。間違ってたら指摘ください。

やりたいこと

SpringBootとか、Expressを使用して、Azure上にAPIサーバを作りたい

記事を書いた経緯

やりたいことの実現方法を調べていると、AzureにはWeb AppsとAPI Appsなるサービスがあることを知りました。ただ、ぱっと見は名前とアイコン以外に違いはあるのかよく分からなかったので、ちょっと書き残しておきます。

公式ドキュメント

Azureのドキュメントでは、API AppsもApp Serviceも、下記App Service のドキュメントにリンクします。
image.png

結論

できることは一緒
※2022/5/17時点の意見

私はAPI appsを使ったことがないので、ネットで調べた情報だけで判断してますが、それぞれに「強み」はあれど、できることは「一緒」なのかなあ、というのが結論です。

個人的にわかったこと

本当に違いがなさそうだなあ

API AppsのOverviewページのドキュメントリンクは、すべてApp Serviceのものに繋がってる

認証の種類

AzureADは知ってたけど、下記プロバイダのサポートもあったのは初めて知った。

想定される使い分け

参考2より

When your business application has got multiple UI components to be compatible with Mobile and desktop interfaces, the UI applications can be hosted in the Mobile App and Web App respectively. However, the underlying business logic needs to be severed from a common source to maintain consistency. In this scenario hosting the business tier in an Azure API App will be the best solution.

モバイル・デスクトップのインターフェースに適応した、複数のUIコンポーネントを持つフロントエンドアプリケーションは、それぞれMobile AppとWeb Appにホストすることができる。しかし、ビジネスロジックは一貫性を保つために切り離す必要があり、このようなシナリオではビジネス層をAzure API Appにホストするのがベストプラクティスとなる。

うーーん……それこそWeb Appsでもいいのでは😂

参考

  1. Azure API App vs Web App
  2. What is the difference between an API App and a Web App?
  3. Azure App Service および Azure Functions での認証と承認
0
2
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
2