Caching icon indicating copy to clipboard operation
Caching copied to clipboard

React to changes in StackExchange.Redis 2.0

Open DamianEdwards opened this issue 8 years ago • 35 comments

Details at https://github.com/StackExchange/StackExchange.Redis/issues/871

I think we'd look at upgrading our dependency to 2.0 and knocking out the soon to be obsolete StackExchange.Redis.StrongName package in the 3.0 timeframe.

DamianEdwards avatar Jun 30 '18 03:06 DamianEdwards

SignalR too?

BrennanConroy avatar Jun 30 '18 04:06 BrennanConroy

Yep

davidfowl avatar Jun 30 '18 04:06 davidfowl

Oh yeah

DamianEdwards avatar Jun 30 '18 04:06 DamianEdwards

cc @mgravell

NickCraver avatar Jul 01 '18 19:07 NickCraver

StackExchange.Redis 2.0 is out, Given the perf improvements in StackExchange.Redis 2.0 It is tempting to backport this to 2.2-preview or 2.2 release?

HassanHashemi avatar Sep 05 '18 05:09 HassanHashemi

I just installed https://www.nuget.org/packages/Microsoft.Extensions.Caching.Redis.Core and saw how old the redis package was. It is also owned by https://www.nuget.org/profiles/LonghronShen which looks weird and phishy.

I would love to see this updated in the next 2.2 preview or release.

steveoh avatar Sep 05 '18 23:09 steveoh

That is definitely not our package.

BrennanConroy avatar Sep 05 '18 23:09 BrennanConroy

@BrennanConroy Would you kindly deal with that package and provide the real package location. Is it https://www.nuget.org/packages/Microsoft.Extensions.Caching.Redis/2.2.0-preview1-35029

PS: I found it from this msdn article https://blogs.msdn.microsoft.com/luisdem/2016/09/06/azure-redis-cache-on-asp-net-core/

steveoh avatar Sep 05 '18 23:09 steveoh

Is it https://www.nuget.org/packages/Microsoft.Extensions.Caching.Redis/2.2.0-preview1-35029

Yes

BrennanConroy avatar Sep 05 '18 23:09 BrennanConroy

Thanks for the quick response!

the nuget package name squatting is a problem.

The package name must have changed because it is referenced in this blog post also: https://dotnetthoughts.net/configuring-redis-for-aspnet-core-session-store/

steveoh avatar Sep 05 '18 23:09 steveoh

@DamianEdwards what about this repo https://github.com/aspnet/DataProtection is it needed to open a different issue there?

sadjadbp avatar Sep 06 '18 04:09 sadjadbp

I see that this is scheduled for a 3.0 release, but is there any chance it could happen sooner? There's a memory leak issue with the StackExchange.Redis.StrongName version 1.2 that appears to be solved in StackExchange.Redis version 2.0.

dwilliss avatar Sep 07 '18 14:09 dwilliss

@DamianEdwards @davidfowl what are the chances for 2.2 here?

NickCraver avatar Sep 11 '18 14:09 NickCraver

I'm broke because one dependency using 2.0 of the redis client and the Extensions.Caching.Redis is using v1...

Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0433	The type 'ConnectionMultiplexer' exists in both 'StackExchange.Redis.StrongName, Version=1.2.6.0, Culture=neutral, PublicKeyToken=c219ff1ca8c2ce46' and 'StackExchange.Redis, 

niemyjski avatar Sep 11 '18 15:09 niemyjski

Please backport to 2.2....

niemyjski avatar Sep 11 '18 15:09 niemyjski

@niemyjski backport? We haven't shipped 2.2 yet. I'm not sure it's reasonable to make this kind of breaking change in 2.2. We'll discuss it.

davidfowl avatar Sep 11 '18 16:09 davidfowl

To bring the changes planned for 3.0 to 2.2 (upgrading redis). The redis client 2.0 changes have been stable for us but broke lots of things with the package name changing.

niemyjski avatar Sep 11 '18 18:09 niemyjski

also time out issues get solved in stackexchange.redis 2.0. it would be nice to see redis 2 on microsoft sooner

amirjalali1 avatar Sep 14 '18 05:09 amirjalali1

@davidfowl I fully understand it's unreasonable to make this kind of change but we're about to yank Redis from our application due to ongoing issues. We've had StackExchange.Redis 1.x make SignalR unusable on three separate occasions due to thread starvation from connectivity issues. Obviously that means we will have to go down to one node and can no longer do no downtime deployments but I don't think I can keep our CEO at bay. Redis is literally a four letter word in his world at this point....

I really don't want to live in a single node world until sometime in 2019 if at all possible.

buvinghausen avatar Sep 15 '18 18:09 buvinghausen

I don't think it's OK to make such a breaking change in 2.2, but we can certainly create a new package that has the newer dependency and do that in 2.2. And then in 3.0 we'd stop building the old package.

Would that work?

Eilon avatar Sep 19 '18 16:09 Eilon