matthiaskoenig / tellurium-web

Tellurium Web Tools
GNU Lesser General Public License v3.0
1 stars 1 forks source link

Cache annotations & separate thread for webservice requests #149

Closed matthiaskoenig closed 6 years ago

matthiaskoenig commented 6 years ago

The webservice request should not block the views.

Some resources on this: https://docs.djangoproject.com/en/2.0/topics/cache/ https://www.fullstackpython.com/caching.html https://realpython.com/blog/python/caching-external-api-requests/ https://requests-cache.readthedocs.io/en/latest/index.html

We don't want to cache the webpages, but only the information for given annotations. These should expire after some time. The perfect solution for the problem seems to be the requests-cache which allows to use redis as a backend and supports expiring.