Resiliency policies now available in Azure Container Apps
We are thrilled to announce the public preview of Azure Container Apps resiliency policies.
With this new resiliency feature, you can seamlessly recover from service and outbound dependency request failures just by adding simple policies, like timeouts, retries, and circuit breakers. The Distributed Application Runtime (Dapr) powers the resiliency feature behind the scenes; however, you don’t need any special Dapr code to configure resiliency policies.
Resiliency policies can be authored and managed via Bicep (ARM), the Azure CLI, and the Azure portal. When an application activates a policy, you can use logs and metrics to confirm that the resiliency behavior is executed as you’d expect.
Container App Resiliency
You can configure Azure Container Apps resiliency policies for container app communication using ACA’s service discovery, like calling a container app by its FQDN or its app name. You can customize the policies to the container app accepting requests with resiliency configurations for:
- Timeouts
- HTTP & TCP Retries/back-offs
- Circuit Breakers
- HTTP & TCP Connection Pools
Resiliency policies are configured and applied to the container app being called (callee), which determines the best resiliency behavior for itself.
Today, resiliency policies can only be applied to requests made using Azure Container App’s service discovery . In the near future, however, you will be able to apply policies to requests made using the Dapr service invocation API. Learn more about configuring container app resiliency.
Dapr Component Resiliency
Resiliency policies can also be configured and applied to dependencies via Dapr components. Author policies for both inbound and outbound operations on a component.
- Outbound polices are applied when a request failure occurs between the Dapr sidecar and a component, like publishing a message to a pub/sub component or persisting and retrieving state to a state store.
- Inbound policies are applied when the Dapr sidecar fails a request to a container app, such as delivering a message from a pub/sub component or responding to an external event from an input binding.
Policies for Dapr components consist of HTTP Timeouts and Retries/back-offs. Support for Circuit Breaker policies will be available in the near future.
Learn more about how to use Dapr component resiliency.
Tell us what you think!
The Azure Container Apps product team is eager to hear about your experience with the resiliency feature. Feel free to share your feedback or pose any questions by visiting our GitHub repo.
Published on:
Learn moreRelated posts
Use Azure Cosmos DB as a Docker container in CI/CD pipelines
There are lot of benefits to using Docker containers in CI/CD pipelines, especially for stateful systems like databases. For example, when you...
Introducing Azure OpenAI Realtime API Support in JavaScript
Introducing the new Realtime API support in the OpenAI JavaScript library, enabling developers to create highly interactive and responsive app...
Full web support for conditional access policies across Azure DevOps and partner web properties
We’re happy to announce that we’ve made significant progress in updating our web authentication stack on Azure DevOps services and partner web...
Doctors generate faster, more accurate medical charts with Sayvant and Azure Cosmos DB
This article is guest authored by Justin Mardjuki, CEO, Sayvant. Emergency rooms and urgent care facilities handle an estimated 350 million vi...
Update to Azure DevOps Allowed IP addresses
We are excited to announce some important upgrades to our networking infrastructure that will enhance the performance and reliability of our s...