All Questions
Tagged with stackexchange.redis async-await
14 questions
0
votes
1
answer
594
views
StackExchange.Redis Async with Fire and Forget not setting the keys
I'm trying to figure out when I try to use Redisclient with Async operations with command flag as Fire and Forget, out of 5 stringSet only 3 is getting set 2 strings are not available in the server. ...
1
vote
1
answer
669
views
Under what circumstance could improper use of .NET 4.8 async/await bring down a multi-instance Azure App Service?
We have a large scale Asp.Net MVC application built on .Net Framework 4.8. We have rules based auto-scaling with minimum instances held during peak hours. We've recently been having outages during ...
1
vote
0
answers
523
views
Differences between StringGetAsync vs StringGet in StackExchange.Redis Multiplexer Connection
I was wondering that there are any performance differences between
StringGetAsync vs StringGet while we are using the StackExchange.Redis Multiplexer Connection.
The StackExhange.Redis Document ...
-1
votes
1
answer
422
views
Await Task.WhenAll(BatchList) - Code continues before Redis Cache is updated
I am calling Redis with a batch request, though it seems that my code is continuing past the Await Task WhenAll statement before the cache has been updated. Am I awaiting the tasks in the wrong way?
...
9
votes
1
answer
1k
views
Redis clients not being dropped by ASP.NET app, running on Azure
We have a .NET 4.6.1 ASP.NET Web Forms app running on an Azure App Service. I say Web Forms, but the app also has Web Api 2 baked in, as well as two WebJob projects performing several tasks each.
We ...
0
votes
1
answer
239
views
SocketClosed on ZADD
I'm trying to efficiently insert 75k+ strings (filenames) into a redis Sorted Set for initial data seeding. With this code I am getting RedisConnectionException: SocketClosed on ZADD which is probably ...
1
vote
1
answer
1k
views
.NET StackExchangeRedis and order of execution with Batch not guaranteed?
I am reviewing the following code which is trying to:
add an key/value to a Redis db.
set an expiry on that new redis key.
i.e.
{
var batch = database.CreateBatch();
var tasks = new Task[]
...
2
votes
1
answer
373
views
Func for async goes in deadlock?
Objective:
I am using redis for cache and trying to get a cache value if not available get from repo and set the cache value.
Problem:
client side js keeps waiting forever and it seems to be in ...
1
vote
1
answer
1k
views
Dead lock when retrieving several keys from Redis
I'm trying to get the result of this queries to redis (using stackexchange C# client) in parallel but somehow I'm running in deadlock and not sure where
The method for retrieving the data:
public ...
6
votes
1
answer
3k
views
How do I set up a verifiable expectation on a mocked async method? [duplicate]
I'm trying to use Moq to test integration between a WebAPI controller and a Redis database, using the StackExchange.Redis client, and cannot work out how to set up a verifiable expectation on a mocked ...
2
votes
0
answers
1k
views
Parallel async retrieval from Stackexchange.Redis doesn't feel parallel
I am trying to read and process some data from Redis in parallel. However, after printing various time stamps of when operations start and end and measuring such times it seems as if the tasks do not ...
5
votes
1
answer
10k
views
StackExchange.Redis Async calls slower than sync calls
I understand that the point of asynchronous methods are not to improve performance but I am finding that the asynchronous methods on the StackExchange.Redis is taking alot longer than the sync methods....
7
votes
1
answer
7k
views
StackExchange.Redis async call hangs
Trying to figure out why this code hangs. I can remove any one of the 3 lines at the bottom of the test and it won't hang, but all 3 together makes it hang. Any help would be greatly appreciated!
[...
9
votes
1
answer
4k
views
StackExchange.Redis Deadlocking
I'm using StackExchange.Redis (SE.R henceforth) in my Nancy application. There is a single global ConnectionMultiplexer that gets automatically passed around by Nancy's TinyIoC via constructor ...