flagsmith-dotnet-client icon indicating copy to clipboard operation
flagsmith-dotnet-client copied to clipboard

Consider adding some means for the caller to know whether the request was from cache or not

Open mjwills-k opened this issue 10 months ago • 1 comments

We have recently started using your API, and have a bug such that while we thought we were getting the identity flags from cache we apparently weren't.

We will fix that bug in our consumer shortly, but I mention only to set the context.

The problem is, metrics wise, I can count on my side how often I call GetIdentityFlags but what I can't tell is how many requests hit the cache (hooray - unbilled!) and how many didn't (oh no - billed!). So it is hard for me to setup alerting on my side for excessive usage.

What would be valuable is it GetIdentityFlags somehow indicated to the caller whether this came from cache or not.

Alas I don't have time to implement it myself, but I am hoping my previous efffort (https://github.com/Flagsmith/flagsmith-dotnet-client/pull/126) may have bought me enough brownie points for you to add it to your roadmap. 😸

mjwills-k avatar Feb 04 '25 07:02 mjwills-k

Hi @mjwills-k, thanks for raising this. I certainly think it sounds sensible, but it's not something that we'll be able to get to any time soon I'm afraid.

matthewelwell avatar Feb 05 '25 09:02 matthewelwell