0

I'm currently using nginx as a reverse proxy for a websocket server that very frequently broadcasts tiny messages; often 1 - 2 bytes in length. I'm trying to minimize latency as much as possible.

It's commonly recommended that tcp_nopush on; be set in nginx.conf so that packets are only sent once they reach the MSS. Given my primary use case is sending very small websocket messages, would it make sense to disable this for the websocket location block, while still keeping tcp_nodelay on; ? Would the potential trade-off between potentially increased congestion and more immediate sending still work out in favor of disabling it?

0 Answers0