Calculate the histogram for the least resolute zoom level to automatically render tiles
Calculate all of the prerequisites to evaluation of an AST over a set of tile sources
Calculate all of the prerequisites to evaluation of an AST over a set of tile sources
ValueReaders need to read layer metadata in order to know how to decode (x/y) queries into resource reads. In this case it requires reading JSON files from S3, which are cached in the reader. Naturally we want to cache this access to prevent every tile request from re-fetching layer metadata. Same logic applies to other layer attributes like layer Histogram.
Things that are cheap to construct but contain internal state we want to re-use use LoadingCache. things that require time to generate, usually a network fetch, use AsyncLoadingCache