I'm an iOS developer and my back end is all written in Django. I use gunicorn as my HTTP server. I have three workers running on a small EC2 instance.
My iOS app does not require any images or static content. At most, I am sending 1-20 JSON objects at a time per request. Each JSON object has at most about 5-10 fields.
I'm quite new to NGINX. I heard it can do proxy buffering. I would like to add proxy buffering for slow clients, but I don't know the appropriate specific settings to use for the following modules:
proxy_buffers
Syntax: proxy_buffers number size
Default: 8 4k|8k
Context: http server location
Reference: proxy_buffers
proxy_busy_buffers_size
Syntax: proxy_busy_buffers_size size
Default: 8k|16k
Context: http server location
Reference: proxy_busy_buffers_size
proxy_buffer_size
Syntax: proxy_buffer_size size
Default: 4k|8k
Context: http server location
Reference: proxy_buffer_size
The only setting which I know how to use (which is pretty sad) is the one below:
proxy_buffering
Syntax: proxy_buffering on | off
Default: on
Context: http server location
Reference: proxy_buffering
Your expertise in this area would be greatly appreciated by this kind lost soul!