前言
原文
小結
Azure App Service 是一個用於建立處理 HTTP 請求的伺服器的服務
它的好處有幾個
- 內建有 scaling,易於處理不同的流量要求
- 支援 Docker,可以使用 container images 輕易的建立符合自己需求的伺服器
- 支援各種的 CI/CD,可以輕鬆的持續部署你的程式碼
- 支援 Deployment slot,可以用 swap 來快速切換不同版本的程式碼
- 在使用 Linux 時﹐針對某些程式語言會有一些 built in image,使你可以只用上傳程式碼,就可以正常運行該程式
同時,在使用它的時候也有幾個限制
- Linux 的 App Service 是不能選擇 Shared pricing tier 的
- Azure portal 只會顯示能在 Linux apps 上使用的功能
- 在使用 built-in images 的時候,伺服器的檔案都會被放到 Azure Storage 內。如果你的 apps 對於讀取檔案的時延有很高的要求,請使用檔案放在 content volume 內的 custom container
文本摘錄
Azure App Service is an HTTP-based service for hosting web applications, REST APIs, and mobile back ends.
Applications run and scale with ease on both Windows and Linux-based environments.
優點
Built-in auto scale support
It can scale up / down (Resources include the number of cores or the amount of RAM available), out / in (increase, or decrease, the number of machine instances).
Container support
You can pull container images from a private Azure Container Registry or Docker Hub.
Continuous integration/deployment support
The Azure portal provides out-of-the-box continuous integration and deployment with Azure DevOps Services, GitHub, Bitbucket, FTP, or a local Git repository on your development machine.
Deployment slots
For Standard App Service Plan tier or better, you can use a separate deployment slot.
App content and configurations elements can be swapped between two deployment slots.
App Service on Linux
App Service on Linux supports many language specific built-in images. Just deploy your code and it will work. Supported languages and frameworks include: Node.js, Java (JRE 8 & JRE 11), PHP, Python, .NET, and Ruby.
If the runtime your application requires isn’t supported in the built-in images, you can deploy it with a custom container.
限制
- App Service on Linux isn’t supported on Shared pricing tier.
- The Azure portal shows only features that currently work for Linux apps.
- When deployed to built-in images, the files will be stored in Azure Storage. It would have higher latency.
If you need lower latency, you can use the custom container that place the files in the content volume.
發佈留言