|
| 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: 07/20/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](../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 | +* Multiregion deployment, to provide resilience to regional outages. |
| 21 | + |
| 22 | +[!INCLUDE [premium.md](../../includes/api-management-availability-premium.md)] |
| 23 | + |
| 24 | + |
| 25 | +## Availability zones |
| 26 | + |
| 27 | +Azure [availability zones](../availability-zones/az-overview.md) are physically separate locations within an Azure region that are tolerant to datacenter-level failures. To ensure resiliency, a minimum of three separate availability zones are present in all availability zone-enabled regions. |
| 28 | + |
| 29 | + |
| 30 | +When enabling [zone redundancy](../availability-zones/migrate-api-mgt.md) for an API Management instance in a supported region, consider the number of [units] you want. Minimally, select the same number of units as the number of availability zones you want to enable, or a multiple so that the units are distributed evenly across the zones. For example, if you selected 3 units, select 3 zones so that each zone hosts one unit. |
| 31 | + |
| 32 | +> [!NOTE] |
| 33 | +> Use the [capacity](api-management-capacity.md) metric and your own testing to decide on the number of service units that will provide the required gateway performance. Learn more about [scaling and upgrading](upgrade-and-scale.md) your service instance. |
| 34 | +
|
| 35 | +## Multiregion deployment |
| 36 | + |
| 37 | +With [multiregion deployment](api-management-howto-deploy-multi-regions.md), API publishers can add gateways to their API Management instance in any number of supported Azure regions. The service instance's management plane and developer portal remain hosted only in the *primary* region, the region originally used for the service deployment. Gateway configurations such as APIs and policy definitions are regularly synchronized between the gateways in the primary and secondary regions. |
| 38 | + |
| 39 | + |
| 40 | +* Multiregion deployment ensures the availability of the API gateway in more than one region, providing service availability if one region goes offline |
| 41 | + |
| 42 | +* API Management routes API requests to regional gateways based on lowest latency, which can reduce latency experienced by geographically distributed API consumers |
| 43 | + |
| 44 | +* If a region goes offline, API requests are automatically routed around the failed region to the next closest gateway. |
| 45 | + |
| 46 | +* If the primary region goes offline, the API Management management plane and developer portal become unavailable, but secondary regions continue to serve API requests using the most recent gateway configuration. |
| 47 | + |
| 48 | +## Availability zones |
| 49 | + |
| 50 | +Optionally enable [zone redundancy](../availability-zones/migrate-api-mgt.md) to improve the availability and resiliency of the Primary or Secondary regions. |
| 51 | + |
| 52 | +## SLA considerations |
| 53 | + |
| 54 | +API Management provides an SLA of 99.99% when you deploy at least one unit in two or more availability zones or regions. |
| 55 | + |
| 56 | +> [!NOTE] |
| 57 | +> 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, such as backend APIs. |
| 58 | +
|
| 59 | + |
| 60 | + |
| 61 | +API Management routes the requests to a regional _gateway_ based on [the lowest latency](../traffic-manager/traffic-manager-routing-methods.md#performance). Although it is not possible to override this setting in API Management, you can use your own Traffic Manager with custom routing rules. |
| 62 | + |
| 63 | +## Next steps |
| 64 | + |
| 65 | +* Learn more about [resiliency in Azure](../availability-zones/overview.md) |
| 66 | +* Learn more about [designing reliable Azure applications](/azure/architecture/framework/resiliency/app-design) |
0 commit comments