I am trying to find an optimal way of reading around 70-80k different keys from Azure Redis cache. All of this data comes up to ~ 55mb
Currently I use the following:
- To get all keys matching a pattern
- To read all the keys
If I am the only user reading the data, I can read it all of in ~11.5 seconds.
However, if 2 API calls run in parallel, response takes ~20 seconds.
For 3 API calls, it goes to ~35 seconds.
Can you guys suggest a way I can read data in parallel without delaying response for another user ?
Language: Dot Net 5
DI Set up
var redisConfiguration = new RedisConfiguration()
ConnectionString = Configuration.GetSection(“Redis:ConnectionString”).Value