Yes: if your image server doesn’t aggressively cache tiles, putting a cheap storage pool in front of it will help your most active content substantially. If your image server does cache tiles but the cache isn’t shared across image servers, even a caching IIIF server would benefit because you wouldn’t see the same image master being pulled off of storage by multiple servers because a load-balancer evenly distributed the incoming requests across the backend pool (that's also an argument for having load-balancers use something like the client IP or the image identifier to favor sending requests to the same backend server). Zoomable viewers like OpenSeadragon are good at generating requests for multiple tiles across multiple zoom levels, so having a warm cache for the image master is usually a win.
One aspect to consider: when do you need to purge the cache? You'd want to automate the process of purging tiles when the upstream image changes if you can't incorporate something like a last-modified timestamp or fixity into the image URL itself. Some caches & CDNs support a Cache-Key header which could be set to something like the image identifier and would then be used to purge all of the cached objects sharing a cache-key when content is updated.
Chris
From:
iiif-d...@googlegroups.com [mailto:
iiif-d...@googlegroups.com] On Behalf Of Dan Field
Sent: Wednesday, November 8, 2017 11:59 AM
To:
iiif-d...@googlegroups.com
Subject: [IIIF-Discuss] Putting a cache in front of IIIF image servers
Is there any benefit to running image servers behind a reverse proxy with a disk based cache like Apache Traffic Server? Our current IIIF infrastructure has a small cluseter of IIP servers with shared fibre channel storage behind an Apache reverse proxy but I'm looking to possibly put the cache right at the top of the stack. Does this work well in a zoomable image scenario where each tile request would be cached upstream? Curious to hear experiences or theoretical issues.
Also is there a way to extract each tile at each level from a jp2 in order to get an idea of the total storage requirement per jp2 if caching tiles? I have access to kakadu and openjpeg tools if that helps.
--
Dan Field <mailto:
d...@llgc.org.uk> Ffôn/Tel.
+44 1970 632 582
Pennaeth Isadran Datblygu Head of Development Section
Llyfrgell Genedlaethol Cymru National Library of Wales
--
-- You received this message because you are subscribed to the IIIF-Discuss Google group. To post to this group, send email to mailto:
iiif-d...@googlegroups.com. To unsubscribe from this group, send email to mailto:
iiif-discuss...@googlegroups.com. For more options, visit this group at
https://groups.google.com/d/forum/iiif-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "IIIF Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailto:
iiif-discuss...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.