Skip to content

Add Brotli support to Appwrite Nginx Server #310

Closed

Description

@eldadfux

Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.
https://github.com/google/brotli

This integration should improve Appwrite HTTP performance on supported clients. Currently Traefik doesn't support this (traefik/traefik#6011) so our Nginx container is our only option.

This should be added on our main Dockerfile located here:
https://github.com/appwrite/appwrite/blob/master/Dockerfile

Activity

  1. added
    enhancement
    good first issue
    help wanted
    on Apr 13, 2020
  2. Rohitub222 commented on Apr 15, 2020

    @Rohitub222

    Hi eldadfux, would love to work on this. Is anyone working on this? If not, want to do so.

  3. eldadfux commented on Apr 15, 2020

    @eldadfux
    MemberAuthor

    Hey @Rohitub222, no-one is working on this yet, it will be great if you could help with this.

    You can also join our Discord channel if you'd like: https://discord.gg/GSeTUeA

    Let me know if you need any help

  4. Rohitub222 commented on Apr 15, 2020

    @Rohitub222

    If I could be of any help to you then the pleasure is mine.
    Thank you for letting me in.

  5. eldadfux commented on Apr 17, 2020

    @eldadfux
    MemberAuthor

    @Rohitub222 Any news? let me know if I can help

  6. Rohitub222 commented on Apr 18, 2020

    @Rohitub222
  7. eldadfux commented on Apr 18, 2020

    @eldadfux
    MemberAuthor

    Thinking about it more, I think it would be better to go with Nginx for multiple reasons.

    • Traefik + Brotli has been in talk from 2018 and still not clear if this is actually going to happen.
    • Our Traefik server is completely decoupled from the app, while the nginx is very well aware and coupled to it. Nginx support will not introduce new complexity.
    • It probably be better to leave the hard workload to the Nginx (which acts as our http server) as it's always easier to scale the app server rather than the load balancer.
    • Even if Traefik will release support for this, it will take more time for it to be stable.
  8. Rohitub222 commented on Apr 22, 2020

    @Rohitub222
  9. eldadfux commented on May 3, 2020

    @eldadfux
    MemberAuthor

    Hey @Rohitub222 , any updates? let me know if you could use any help...

  10. Rohitub222 commented on May 4, 2020

    @Rohitub222
  11. Rohitub222 commented on May 10, 2020

    @Rohitub222
  12. christyjacob4 commented on May 10, 2020

    @christyjacob4
    Contributor

    @Rohitub222 You can create a fork of the repo, push your changes to your fork and then raise a PR against the main repo

  13. eldadfux commented on May 10, 2020

    @eldadfux
    MemberAuthor

    Exactly what @christyjacob4 said ⏫👍

  14. added
    waiting for release
    and removed
    good first issue
    help wanted
    on Jun 13, 2020
  15. eldadfux commented on Feb 12, 2021

    @eldadfux
    MemberAuthor

    Brotli compression is now available on Appwrite 0.7! Start boosting your APIs! Thanks to everyone who helped on this issue ❤️

  16. removed
    waiting for release
    on Jun 22, 2021
  17. added 2 commits that reference this issue on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions