project-zot / zot

zot - A scale-out production-ready vendor-neutral OCI-native container image/artifact registry (purely based on OCI Distribution Specification)
https://zotregistry.dev
Apache License 2.0
871 stars 93 forks source link

[Feat]: redis backend for dedup cache #2004

Open elee1766 opened 10 months ago

elee1766 commented 10 months ago

Is your feature request related to a problem? Please describe.

i would like to use something that is not dynamodb as a distributed dedup cache.

Describe the solution you'd like

redis seems like a good candidate for this. there was already a dependency for redis in the package, so i felt it was a good choice.

Describe alternatives you've considered

No response

Additional context

No response

rchincha commented 10 months ago

@elee1766 is this for a cloud deployment use case?

elee1766 commented 10 months ago

yep!

I plan to combine this with the s3 storage

I am also currently working on the ability to use s3 storage with the sync backend.

my use case is to use zot as a proxy to balance between two identical container registries. I would like the cached images to stay existent between runs without configuring persistent storage. currently there's like a long delay on first pull which I would like to avoid.

ideally I am trying to host a distributed zot cluster using a PAAS platform, like heroku, fly, digitalocean app engine, etc. they all support redis but not dynamo since that's aws only

AndersBennedsgaard commented 1 month ago

Perhaps this should be changed to Valkey or similar, since Redis isn't considered open-source anymore