Poor performance after upgrading from version `2.0.601` to `2.5.43`
I have a .NET solution which contains an ASP.NET MVC 5 web application (.NET Framework 4.8) with references to other netstandard2.0 class libraries. The same class libraries are also used by an additional .NET 5 console application.
I upgraded the projects in the solution using Visual Studio, upgraded the projects with existing references to StackExchange.Redis from version 2.0.601 to 2.5.43.
I ran the project locally on my DEV machine that has Redis running in a windows docker container.
I checked that read/write operations were still working and didn't notice any performance issues.
My PR for this change was merged into the staging environment where it was tested.
The tester found a noticeable slowness in the web application with this change to the point where the change had to be reverted.
Are there any known issues with performance when upgrading between these two versions?
Does it matter what version of Redis we are running as my DEV machine could possibly be running a newer version that the staging environment?
Are they any code changes required to be made when updating to version 2.5.43? - the only extra changes I made within the PR was to update the obsolete warnings IServer.IsSlave and CommandFlags.PreferSlave with IServer.IsReplica and CommandFlags.PreferReplica respectively.
Any advice would be appreciated.
Do you have any details here? What is slower? By how much? The only concrete data I have here is the versions, but nothing else to advise on. What's being called and how it differs would be the best starting points.
I updated to an earlier version 2.1.58 instead and the performance is better. I think it could be an issue with one of the dependency updates when you go from version 2.0.601 to 2.5.43.