Logo

dev-resources.site

for different kinds of informations.

High Availability in Azure: App Service, Function Apps

Published at
7/10/2020
Categories
azure
highavailability
Author
mithunshanbhag
Categories
2 categories in total
azure
open
highavailability
open
Author
14 person written this
mithunshanbhag
open
High Availability in Azure: App Service, Function Apps

Azure App Service Apps (web apps)

azure storage account

An Azure App Service Plan is pinned to a specific Azure Region. Any App Service Apps created in the App Service Plan will be provisioned in that same region. If your app needs additional redundancies in other regions or geographies, you'll have to:

  1. Provision them yourself (you'll need to create new App Service Plans in those regions, if they don't already exist).
  2. Use Azure Traffic Manager to route traffic to all available redundancies (you can only specify one App Service endpoint per region in a Traffic Manager profile). More details here.

azure app service redundancy

The SLA for Azure App Services guarantee a 99.95% uptime for each regional deployment.

Azure Function Apps

azure functions

Azure Function Apps too have regional deployments. If you're using the consumption plan, then you explicitly specify the region. If on the App Service Plan, then the region is the same as that of the App Service Plan.

Similar to App Services above, any additional redundancies will have to be explicitly created and traffic to these will have to be routed via Azure Traffic Manager.

azure functions redundancy

The SLA for Azure Functions guarantee a 99.95% uptime for each regional deployment (for both app service plan and consumption plan).

Miscellaneous

Horizontally scaled instances

As I've previously mentioned, horizontal auto-scaling exists to address performance concerns rather than high-availability concerns.

App Service Apps: When horizontal auto-scaling is enabled on a parent App Service Plan, additional instances are created, and each instance hosts all App Service Apps contained in the parent App Service Plan. All instances are created in the same WebSpace. The App Service's integrated load-balancer (non-accessible) manages the traffic. Note that all scaled out instances of an app will still have the same endpoint URL.

Function Apps: Based on a combination of factors (trigger types, rate of incoming requests, language/runtime and perhaps the host health-monitor stats), the scale controller will create additional instances of an Azure Function App (max limit of 200 instances). Note that the scaling unit is the Function App (host) itself and not individual functions.

Bonus reading:

The "Always On" setting

If you have an App Service App or a Function App associated with an App Service Plan in the production or isolated tier, then you should consider enabling the "always on" setting. This ensures that your app is always running and never unloaded (default behavior is to deactivate/unload idle apps to conserve resources).

Notes:

  • This setting is not available for App Service Apps in dev/test tier.
  • Idle Function Apps in the consumption plan will be subject to cold start latency.

azure app service always on

Cloning and Moving App Service Apps

Using Azure Powershell, it is possible to create clones of existing App Service App within the same region or in a new region. Please note that there are some caveats/restrictions though.

You can also move an App Service App to another App Service plan as long as both the source plan and the destination plan are within the same WebSpace.

FWIW, I've never tried this out myself.

And yes, like any other Azure Resource, App Service Plans and App Service Apps can be moved between resource groups.

WebSpaces

WebSpaces are units of deployment for Azure App Service Plans. An App Service Plan's WebSpace is identified by the combination of its resource group and the region in its deployed. Any additional App Service Plan deployments to the same resource group + region combination gets assigned to the same WebSpace. See more details here.

To see the WebSpace associated with an App Service App or App Service Plan, navigate to that resource in the Azure Resource Explorer (via the Azure Portal or via the website) and see the WebSpace and SelfLink properties.

highavailability Article's
30 articles in total
Favicon
How to Design a Secure and Scalable Multi-Region Architecture on AWS
Favicon
Optimizing Kubernetes for High Availability (HA)
Favicon
High Availability Database Architecture on AWS: A Deep Dive
Favicon
Docker Autoscaling: Enhancing Application Resilience and Resource Efficiency
Favicon
Why we decided to go with Kubernetes
Favicon
Strategies for Minimizing System Downtime and Ensuring High Availability and Redundancy for Your Application
Favicon
High Availability vs Disaster Recovery: Which Is Better
Favicon
Snowflake's Blueprint for Resilience: High Availability and Disaster Recovery
Favicon
Keeping the Lights On: How Monitoring Tools Ensure High Availability in DevOps
Favicon
How Cloudflare Achieved 55 Million Requests per Second with Just 15 PostgreSQL Clusters! πŸ’»
Favicon
Building a multi-region highly available identity provider with the AWS cloud and Ory Hydra
Favicon
Load Balancers Pain Points
Favicon
Load Balancing 101 βš–οΈ: Achieving Scalability and High Availability πŸ€ΉπŸ»β€β™€οΈ
Favicon
Cumulocity IoT Edge: Fault Tolerance and Data Resilience vs High Availability (HA)
Favicon
Achieving High Availability in Microsoft Azure
Favicon
How to create a simple high availability apache webserver cluster
Favicon
YugabyteDB: how does a master deal with HA
Favicon
DigitalOcean Kubernetes Control Plane General Availability (GA), now with a 99.95% SLA
Favicon
How to Achieve Geo-redundancy with Zeebe
Favicon
Pipy + Redis + Sentinel = High available Redis
Favicon
Moderating Pod's appetites on a K8s node: the brief
Favicon
Creating SSL-Enabled Mirror on InterSystems IRIS Using Public Key Infrastructure (PKI)
Favicon
High Availability in Azure: App Service, Function Apps
Favicon
High Availability in Azure: Traffic Management
Favicon
High Availability in Azure: Storage Redundancies
Favicon
High Availability in Azure: Availability Sets
Favicon
High Availability in Azure: Availability Zones
Favicon
High Availability in Azure: The basics
Favicon
Don’t let your Apps down, enable High Availability!
Favicon
Running-multi server Dokku: problems and options

Featured ones: