Currently the data endpoints check the indexer sync status before serving requests.
This hits the db on every request. Once the stage is LIVE, we dont expect it to go down quickly, so we could cache the LIVE state and refresh it every 5-10 seconds instead of checking for every request.
There should be proper performance/load testing before doing this, to make sure the network status check does not impact data endpoint performance
Currently the data endpoints check the indexer sync status before serving requests.
This hits the db on every request. Once the stage is LIVE, we dont expect it to go down quickly, so we could cache the LIVE state and refresh it every 5-10 seconds instead of checking for every request.
There should be proper performance/load testing before doing this, to make sure the network status check does not impact data endpoint performance