Sitecore 10 xConnect Circuit Breaker Issue
Recently we have done Sitecore upgradation from 9.1 to 10.1. While doing the setup on Sitecore 10.1, I faced the below issue- Sitecore.XConnect.XdbCollectionUnavailableException: An error occurred while sending the request What is Circuit breaker? Circuitbreaker is a design pattern used in software development. It is used to detect failures and encapsulates the logic of preventing a failure from constantly recurring, during maintenance, temporary external system failure or unexpected system difficulties. Sitecore uses the PollyCircuit Breaker library and has added a Polly.IAsyncPolicy<HttpResponseMessage> type field to to the Sitecore.Xdb.Common.Web.CommonWebApiClient<TRoutes> class. This allows you to do a dependency injection of the Polly.CircuitBreaker class, which is an implementation of Polly.IAsyncPolicy. How to fix the error? You enable CircuitBreaker configurations by patch file to manage xConnect requests from the Content Management role