data-api-builder
data-api-builder copied to clipboard
HealthEndpoint: Caching of HealthCheck queries
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
Let's copy the current TTL default and set it to be 5 seconds. Hard coded right now is fine.
Remember concurrent calls for health should be disallowed (two at the same time).