Difference between StackExchange.Redis and ServiceStack.Redis

It’s VERY important to notice that ServiceStack is a commercially-supported product. See the free-quotas on servicestack.net. Also this question mentions the same. The ServiceStack.Redis NuGet package include the following limitations: 10 Operations in ServiceStack (i.e. Request DTOs) 10 Tables in OrmLite 20 Different Types in JSON, JSV and CSV Serializers * 20 Different Types in … Read more

StackExchange.Redis timeout and “No connection is available to service this operation”

It looks like in most cases this exception is a client issue. Previous versions of StackExchange.Redis used Win32 socket directly which sometimes has a negative impact. Probably Asp.net internal routing somehow related to it. The good news is that StackExchange.Redis’s network infra was completely rewritten recently. The last version is 2.0.513. Try it and there … Read more

Deadlock when accessing StackExchange.Redis

These are the workarounds I’ve found to this deadlock problem: Workaround #1 By default StackExchange.Redis will ensure that commands are completed in the same order that result messages are received. This could cause a deadlock as described in this question. Disable that behavior by setting PreserveAsyncOrder to false. ConnectionMultiplexer connection = …; connection.PreserveAsyncOrder = false; … Read more