Closed keshavkaul closed 1 year ago
Hi @keshavkaul,
So not a lot to go off of here (really need to see a fair bit of your code to make a sensible determination), a couple of notes.
Microsoft.Extensions.Caching.StackExchangeRedis
is a caching abstraction explicitly for aspnetcore which might be worth trying. Or you could just use the library directly.How well your app can be optimized with Redis is likely ultimately a data modeling question and a question of your hit rate - e.g. if 100% of your queries are novel (haven't been seen before), simple sets/gets in Redis will not do much for you.
Thank you @slorello89 for the explanation. Makes sense to rethink on the approach I'm trying to take here.
Some more context:
I'm thinking of having a solution that combines redis cache and per request in memory cache like this:
Thanks again for your guidance.
This is more of me seeking suggestions to mitigate this issue. I'm attaching a dottrace profiler screenshot for more info.
I'm using Easycaching.Redis library that uses this library.
Some context:
After adding db caching, the page load performs worst than without integrating redis cache.
Any help is welcome.