Indicia-Team/warehouse

Improve caching of service requests

Opened this issue · 0 comments

On Saturday 22nd April, 2023, the Daily Mail published an article containing an iframe holding https://eip.ceh.ac.uk/hydrology/bloomin-algae/

The Bloomin' Alage map therein, obtained its data from ElasticSearch via the proxy on warehouse1. The rate of requests (10 or 15 per second) caused a slowdown on warehouse1 meaning it was unable to give timely responses to the many other websites it supports, leading to timeouts and blank screens.

To prevent a repetition, we should look at improving caching for responses, where appropriate, and enabling this by default.