|
| 1 | +--- |
| 2 | +title: Ensure reliability of your Azure API Management instance |
| 3 | +titleSuffix: Azure API Management |
| 4 | +description: Learn how to use Azure reliability features including availability zones and multiregion deployments to make your Azure API Management service instance resilient to cloud failures. |
| 5 | +author: dlepow |
| 6 | +ms.service: api-management |
| 7 | +ms.topic: conceptual |
| 8 | +ms.date: 09/27/2022 |
| 9 | +ms.author: danlep |
| 10 | +--- |
| 11 | + |
| 12 | +# Ensure API Management availability and reliability |
| 13 | + |
| 14 | + |
| 15 | +This article introduces service capabilities and considerations to ensure that your API Management instance continues to serve API requests if Azure outages occur. |
| 16 | + |
| 17 | +API Management supports the following key service capabilities that are recommended for [reliable and resilient](../availability-zones/overview.md) Azure solutions. Use them individually, or together, to improve the availability of your API Management solution: |
| 18 | + |
| 19 | +* **Availability zones**, to provide resilience to datacenter-level outages |
| 20 | + |
| 21 | +* **Multi-region deployment**, to provide resilience to regional outages |
| 22 | + |
| 23 | +> [!NOTE] |
| 24 | +> API Management supports availability zones and multi-region deployment in the **Premium** service tier. |
| 25 | +
|
| 26 | +## Availability zones |
| 27 | + |
| 28 | +Azure [availability zones](../availability-zones/az-overview.md) are physically separate locations within an Azure region that are tolerant to datacenter-level failures. Each zone is composed of one or more datacenters equipped with independent power, cooling, and networking infrastructure. To ensure resiliency, a minimum of three separate availability zones are present in all availability zone-enabled regions. |
| 29 | + |
| 30 | + |
| 31 | +Enabling [zone redundancy](../availability-zones/migrate-api-mgt.md) for an API Management instance in a supported region provides redundancy for all [service components](api-management-key-concepts.md#api-management-components): gateway, management plane, and developer portal. Azure automatically replicates all service components across the zones that you select. |
| 32 | + |
| 33 | +When you enable zone redundancy in a region, consider the number of API Management scale [units](upgrade-and-scale.md) that need to be distributed. Minimally, configure the same number of units as the number of availability zones, or a multiple so that the units are distributed evenly across the zones. For example, if you select 3 availability zones in a region, you could have 3 units so that each zone hosts one unit. |
| 34 | + |
| 35 | +> [!NOTE] |
| 36 | +> Use the [capacity](api-management-capacity.md) metric and your own testing to decide on the number of scale units that will provide the gateway performance for your needs. Learn more about [scaling and upgrading](upgrade-and-scale.md) your service instance. |
| 37 | +
|
| 38 | +## Multi-region deployment |
| 39 | + |
| 40 | +[!INCLUDE [api-management-multi-region-concepts](../../includes/api-management-multi-region-concepts.md)] |
| 41 | + |
| 42 | +## Combine availability zones and multi-region deployment |
| 43 | + |
| 44 | +The combination of availability zones for redundancy within a region, and multi-region deployments to improve the gateway availability if there is a regional outage, helps enhance both the reliability and performance of your API Management instance. |
| 45 | + |
| 46 | +Examples: |
| 47 | + |
| 48 | +* Use availability zones to improve the resilience of the primary region in a multi-region deployment |
| 49 | + |
| 50 | +* Distribute scale units across availability zones and regions to enhance regional gateway performance |
| 51 | + |
| 52 | + |
| 53 | +## SLA considerations |
| 54 | + |
| 55 | +API Management provides an SLA of 99.99% when you deploy at least one unit in two or more availability zones or regions. For more information, see [Pricing](https://azure.microsoft.com/pricing/details/api-management/). |
| 56 | + |
| 57 | +> [!NOTE] |
| 58 | +> While Azure continually strives for highest possible resiliency in SLA for the cloud platform, you must define your own target SLAs for other components of your solution. |
| 59 | +
|
| 60 | +## Backend availability |
| 61 | + |
| 62 | +Depending on where and how your backend services are hosted, you may need to set up redundant backends in different regions to meet your requirements for service availability. You can manage regional backends and handle failover through API Management to maintain availability. For example: |
| 63 | + |
| 64 | +* In multi-region deployments, use [policies to route requests](api-management-howto-deploy-multi-region.md#-route-api-calls-to-regional-backend-services) through regional gateways to regional backends. |
| 65 | + |
| 66 | +* Configure policies to route requests conditionally to different backends if there is backend failure in a particular region. |
| 67 | + |
| 68 | +* Use caching to reduce failing calls. |
| 69 | + |
| 70 | +For details, see the blog post [Back-end API redundancy with Azure API Manager](https://devblogs.microsoft.com/premier-developer/back-end-api-redundancy-with-azure-api-manager/). |
| 71 | + |
| 72 | +## Next steps |
| 73 | + |
| 74 | +* Learn more about [resiliency in Azure](../availability-zones/overview.md) |
| 75 | +* Learn more about [designing reliable Azure applications](/azure/architecture/framework/resiliency/app-design) |
| 76 | +* Read [API Management and reliability](/azure/architecture/framework/services/networking/api-management/reliability) in the Azure Well-Architected Framework |
0 commit comments