imazen / imageflow-dotnet-server

A super-fast image server to speed up your site - deploy as a microservice, serverless, or embeddable.
https://docs.imageflow.io
GNU Affero General Public License v3.0
246 stars 33 forks source link

Documentation on DiskCache vs HybridDiskCache #61

Closed benwmills closed 1 year ago

benwmills commented 2 years ago

Is there any documentation on the DiskCache vs HybridDiskCache?

I think I'm seeing that the HybridDiskCache keeps an in memory database of the resized images cached to disk. That seems good versus always attempting to read from disk. Is it always better than DiskCache?

I'm assuming one caveat is if you are limited for memory space.

lilith commented 2 years ago

HybridDiskCache is always better than DiskCache. It uses a write-ahead transaction log to prevent orphaned cached files, is capable of storing the content-type metadata, and keeps an index of the cache in memory.

Crucially, it actually (perfectly) constrains disk space usage which DiskCache is (in practice) hopeless at managing.

It's also cross-platform.

On Thu, Jul 7, 2022, 7:24 AM Ben Mills @.***> wrote:

Is there any documentation on the DiskCache vs HybridDiskCache?

I think I'm seeing that the HybridDiskCache keeps an in memory database of the resized images cached to disk. That seems good versus always attempting to read from disk. Is it always better than DiskCache?

I'm assuming one caveat is if you are limited for memory space.

— Reply to this email directly, view it on GitHub https://github.com/imazen/imageflow-dotnet-server/issues/61, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA2LHZ6EUOOV57ZVQGM6ULVS3K75ANCNFSM525M2HOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

benwmills commented 2 years ago

Perfect! I'm migrating over from ImageResizer, so this is new to me.

The documentation isn't as thorough as for ImageResizer and I've been a little unsure of when/whether ImageFlow is ready (it's still not at version 1.0), but it seems to be working great! We're excited to have a good option for our .NET Core rewrite.

lilith commented 2 years ago

It's production ready, except for the legacy server option. I'll remove that and publish 2.0 stable this year - but that's just a number.

On Thu, Jul 7, 2022, 10:23 AM Ben Mills @.***> wrote:

Perfect! I'm migrating over from ImageResizer, so this is new to me.

The documentation isn't as thorough as for ImageResizer and I've been a little unsure of when/whether ImageFlow is ready (it's still not at version 1.0), but it seems to be working great! We're excited to have a good option for our .NET Core rewrite.

— Reply to this email directly, view it on GitHub https://github.com/imazen/imageflow-dotnet-server/issues/61#issuecomment-1177887093, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA2LHYPPT7YSHXCFBSC3MLVS4ABFANCNFSM525M2HOA . You are receiving this because you commented.Message ID: @.***>