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

feat(deployment): Add compression middleware for the website #1850

Merged
merged 3 commits into from
May 10, 2024

Conversation

theosanderson
Copy link
Member

@theosanderson theosanderson commented May 10, 2024

Adds compression middleware for the website, handled by traefik. This reduces e.g. the submission page from transferring 1.1 MB of resources to transferring 323 kB.

We can reuse this middleware in other parts of the deployment later in cases that do not already handle compression.

https://add-compression-middlewar.loculus.org/

@theosanderson theosanderson added the preview Triggers a deployment to argocd label May 10, 2024
@theosanderson theosanderson changed the title wip: add compression middleware feat(deployment): Add compression middleware for the website May 10, 2024
@corneliusroemer
Copy link
Contributor

corneliusroemer commented May 10, 2024

Can we configure the compression? Or does it automatically pick zstd over gzip?

Currently only gzip and br supported, I'll open an issue for zstd :p

https://doc.traefik.io/traefik/middlewares/http/compress/

It also says only uncompressed requests are compressed, so we can sprinkle this pretty much everywhere.

@theosanderson
Copy link
Member Author

Looks like for Traefik V2 it's just gzip

@theosanderson theosanderson merged commit b64b535 into main May 10, 2024
8 checks passed
@theosanderson theosanderson deleted the add-compression-middleware branch May 10, 2024 13:02
corneliusroemer pushed a commit that referenced this pull request May 10, 2024
* add compression middleware

* update

* fix

(cherry picked from commit b64b535)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Triggers a deployment to argocd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants