Open twagoo opened 8 years ago
Suggestion for a caching solution to look into from Willem: https://varnish-cache.org/
Suggestion - with relative little effort probably quite an improvement could be achieved by the following naive caching approach: cache all responses to GET
requests but invalidate the entire cache on any POST
, PUT
or DELETE
. Possibly some exceptions can be defined for actual static content.
Another framework that could be useful to set up a simple caching solution: Redis
A combination of an nginx proxy (to be defined in the compose setup) and some clever handling of cache related request headers seems like a promising path to explore.
The creation of profile XMLs can take a rather long time (over 10 seconds) for larger (once expanded) profiles. E.g. requesting the xsd of clarin.eu:cr1:p_1361876010571 took 12 seconds on this occasion:
See if this can be improved either by caching or other means of streamlining the process. A first step would be to determine the bottleneck. The following do not seem to be the bottleneck:
Actually, retrieving the XML rather than the XSD seems to take longer.