diff --git a/src/Services/Basket/Basket.API/Startup.cs b/src/Services/Basket/Basket.API/Startup.cs index 45adb5f66..2a3cc5532 100644 --- a/src/Services/Basket/Basket.API/Startup.cs +++ b/src/Services/Basket/Basket.API/Startup.cs @@ -101,18 +101,12 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API services.Configure(Configuration); //By connecting here we are making sure that our service - //cannot start until redis is ready. This might slow down startup, - //but given that there is a delay on resolving the ip address - //and then creating the connection it seems reasonable to move - //that cost to startup instead of having the first request pay the - //penalty. + //cannot start until redis is ready. services.AddSingleton(sp => { var settings = sp.GetRequiredService>().Value; var configuration = ConfigurationOptions.Parse(settings.ConnectionString, true); - configuration.ResolveDns = true; - return ConnectionMultiplexer.Connect(configuration); });