If you depending on a external source to return static data you can implement cachetools to cache data from preventing the overhead to make the request everytime you make a request to Flask. This is useful when your upstream data
Caching
A collection of 2 posts
Give your Database a break and use Memcached to return frequently accessed data
So let's take this scenario: Your database is getting hammered with requests and building up some load over time and we would like to place a caching layer in front of our database that will return data from the caching
Subscribe to Sysadmins
Subscribe today and get access to a private newsletter and new content every week!