c# - .NET Application Cache vs Database Cache -
im building image gallery reads file disk, create thumbnails on fly , present them user. works good, except processing takes bit time.
i decided cache processed images using asp .net application cache. when image processed add byte[] stream cache. far know beeing saved system memory. , working perfect, loading of page faster.
my question if there thousands of images gets cached in application cache, affect server performance in way?
are there other, better ways image caching?
by default application cache stores data on server memory; depending on website navigation pattern, maybe don't many cache hits.
you preprocess images generate thumbnails @ once , store original image. way don't need deal cache layer and, probably, won't take more disk space.
Comments
Post a Comment