Replies: 2 comments 8 replies
-
Anybody with some input, perhaps? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Piedone why don't you put a cdn in front of the web host for your images? That's been my general go to for improving performance, and has generally been successful. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm investigating some static file-serving performance issues for an Orchard Core app running on Azure App Services. It seems that storage IO is being throttled for the app by Azure, due to too many storage operations. ImageSharp's
PhysicalFileSystemCache
is a primary consumer of storage IO, so I'm looking into lowering that.One option would be to use
AzureBlobStorageImageCache
(since the source images are already stored), and another one I thought about is having an in-memory caching (withIMemoryCache
) implementation wrappingPhysicalFileSystemCache
. So, files would still be stored on the file system, but reads (when done repeatedly) would come from memory.This would help because we have plenty of available RAM, but a very narrow IO budget (with about max 500 operations per second available for everything, including running the OS).
Has anybody done this before? I didn't find any sign of this. Or am I overlooking some aspect of why this is a bad idea?
Beta Was this translation helpful? Give feedback.
All reactions