valeriansaliou / bloom

:cherry_blossom: HTTP REST API caching middleware, to be used between load balancers and REST API workers.
https://crates.io/crates/bloom-server
Mozilla Public License 2.0
711 stars 48 forks source link

Stale while revalidate support #18

Open SGudbrandsson opened 1 year ago

SGudbrandsson commented 1 year ago

Hi,

I'm very interested in this proxy, it's very interesting for scalability in microservices.

Are there any plans to support Stale-while-revalidate to improve response time after cache entries expire?

valeriansaliou commented 1 year ago

Hello there! That could be a nice idea, definitely. If implemented, I'd say this would be an opt-in feature disabled by default in the configuration, as in Crisp's use case (for which Bloom was initially built), this would result in erratic behavior for the end user due to our messaging use-case.

Thank you!

valeriansaliou commented 1 year ago

Tagging issue for implementation.