tiangolo / meinheld-gunicorn-flask-docker

Docker image with Meinheld and Gunicorn for Flask applications in Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compression

deyvsh opened this issue · comments

Hi, thanks for sharing this!

Just researching whether we could use it, and - please forgive my ignorance - I can't work out where in the stack I'd do compression. When there's nginx it seems like that's the obvious place, but here I haven't yet got my head around how responsibilities are divided between meinheld and gunicorn.

Any pointers in the right direction would be much appreciated. Thanks!

I would suggest you put another layer on front of this container (and probably other containers). In my case, I would use Traefik, which also handles HTTPS certificates for free. And then set those optimizations in that layer.

Or you could also use an Nginx based one.

But I think any of those would have better performance for that final optimization as those are written in a compiled language.

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.