klokantech / embedr

Embedr.eu - Image Embedding Service (IES) with support for IIIF, OEmbed, zoomable viewer in an iFrame
http://embedr.eu/
European Union Public License 1.1
15 stars 4 forks source link

ElasticCache to replace local memcached in iiif machines #57

Open klokan opened 9 years ago

klokan commented 9 years ago

In this moment each IIIF machine has it's own memcached. This ensures that the cache is shared between multiple processes of the imageserver on that single machine. If loadbalancer starts multiple IIIF machines - the cache between these is not shared right now.

If a shared cache is applied the service will speed up - and probably save some costs as well (smaller amount of IIIF machines started by the loadbalancer). Cache is important especially for repeatably accessed thumbnails - such as the one on embedr.eu or other often visited large list of thumbnails on other services.

It seems ideal would be to have a single node with a large memcached which will be used across all the iiif machines - Amazon offers for this a service called ElasticCache - which is essentially a machine with MemCached service.

If this is applied we will need to rebuild the IIIF AMI - so it uses the shared single cache from all instances.

So the tasks here are:

klokan commented 9 years ago

Diagram (compare with older structure mentioned in comments #34): aws-diagram-embedr-future-cache