On nginx website they are two module for HTTP PUSH.
Here they are:
http://pushmodule.slact.net/ and http://wiki.nginx.org/HttpPushStreamModule
Wich one is better?
Have you used one of them? Which one do you prefer?
Thanks in advance.
NGINX, at its core, is a collection of modules. Whether you are using core modules, like the http and stream (TCP/UDP) modules, or third‑party modules like GeoIP or RTMP, the module framework is the same.
From the description of keepalive_timeout: "sets a timeout during which a keep-alive client connection will stay open on the server side." So its possible that the keepalive connection stayed open longer on NGINX if you configured keepalive_timeout.
The default location, if no path was specified at compile time, is $NGX_PREFIX/modules . On my macOS system, $NGX_PREFIX defaults to /usr/local/nginx , so the default modules path is /usr/local/nginx/modules ; whereas Ubuntu 17.10 breaks the prefixed monolith up a bit and expects modules in /usr/lib/nginx/modules .
Instead of a utility belt, Nginx has a module chain. When Nginx needs to gzip or chunk-encode a response, it whips out a module to do the work. When Nginx blocks access to a resource based on IP address or HTTP auth credentials, a module does the deflecting.
I chose HttpPushStreamModule ( https://github.com/wandenberg/nginx-push-stream-module ).
It's better. It now supports websockets.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With