dzikoysk / reposilite

Lightweight and easy-to-use repository management software dedicated for the Maven based artifacts in the JVM ecosystem 📦
https://reposilite.com
Apache License 2.0
1.36k stars 179 forks source link

Cache unresolvable artifacts too, like "Negative Cache" #2221

Open wglanzer opened 3 weeks ago

wglanzer commented 3 weeks ago

Request details

We got the ability to define the "max age of metadata file". This is extremely useful, if you do not want to send excessive amounts of requests to the upstream mirrors.

Will it be possible to add the ability to cache "unresolvable" artifacts too? Nexus does give us this option, called "Negative Cache".

I understand, that this option may result in invalid responses, if something gets uploaded to a mirror - but the performance improvement otherwise should be massive.

okgolove commented 1 week ago

This is a killer feature if we are talking about proxy repositories. I've compared Reposilite with Nexus (with enabled Negative Cache) - 200 sec vs 60 sec

okgolove commented 4 days ago

Hi @dzikoysk! Do you have any plans about this issue?

dzikoysk commented 4 days ago

Hey, I agree it'd be nice to have it as an opt-in feature. Unfortunately, I'm quite busy with some other important stuff thus the priority on this is quite low for me at this moment. If any of you would like to work on it, go ahead - I'll try to help here (or on our Discord server) in case of any problems 🤞