Since the API calls are stored in an LRU cache, we can decrease the latency of front-end API calls by initializing the request when express renders the route. If the data is current no new request will be generated, and if the data is stale then by the time the front-end requests it the API call will already be in progress or completed.
Since the API calls are stored in an LRU cache, we can decrease the latency of front-end API calls by initializing the request when express renders the route. If the data is current no new request will be generated, and if the data is stale then by the time the front-end requests it the API call will already be in progress or completed.