Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal to use Souin as an HTTP cache system #2045

Closed
darkweak opened this issue Dec 15, 2021 · 2 comments · Fixed by #2069
Closed

Proposal to use Souin as an HTTP cache system #2045

darkweak opened this issue Dec 15, 2021 · 2 comments · Fixed by #2069

Comments

@darkweak
Copy link
Contributor

Issue Description

Hello there, first thank you for your awesome work on echo and the ecosystem.
I would know if it would be accepted if I apply for integrate the Souin HTTP cache system as an available cache provider into echo ?
It supports a distributed and not distributed storage systems using Olric (the distributed one) and Badger (the non distributed), it suits the RFC-7234 and supports the Cache-Status HTTP header.
I already wrote a middleware handler for Træfik, caddy (which one will replace the official one soon) and for Tyk.
Souin can invalidate the CDN placed on top of your stack such as Cloudflare, Fastly, ... and can set the returned data into the CDN cache to be served as fast as possible.
Open to discuss about it with you ✌️.

@aldas
Copy link
Contributor

aldas commented Dec 16, 2021

Hi, middlewares with external dependencies usually go in https://github.com/labstack/echo-contrib but you are probably better off creating completely separate repo for Souin as you can iterate in separate repo way faster.

For visibility we could create list off external/3rd-party middlewares in echo-contrib readme.md and maybe somewhere in Echo website

@darkweak
Copy link
Contributor Author

Hi @aldas thank you for your answer, I'll setup a working poc this week-end and apply a PR on the contrib repository.

It would be great to create the 3rd-party middlewares in the Echo website imho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants