data-api-builder icon indicating copy to clipboard operation
data-api-builder copied to clipboard

HealthEndpoint: Caching of HealthCheck queries

Open sezal98 opened this issue 11 months ago • 2 comments

We need to introduce a caching behaviour in HealthCheck queries so that we dont need to bumbard the DB again and again and return our values from the health check cache based on an time interval or ttl of cache

sezal98 avatar Jan 23 '25 07:01 sezal98

Let's copy the current TTL default and set it to be 5 seconds. Hard coded right now is fine.

JerryNixon avatar Jan 24 '25 01:01 JerryNixon

Remember concurrent calls for health should be disallowed (two at the same time).

JerryNixon avatar Jan 24 '25 01:01 JerryNixon