Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which module for Nginx is the best for HTTP PUSH? [closed]

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.

like image 762
jnbdz Avatar asked Oct 19 '11 02:10

jnbdz


People also ask

What are NGINX modules?

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.

What is Keepalive_timeout NGINX?

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.

Where are NGINX modules?

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 .

How do NGINX modules work?

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.


1 Answers

I chose HttpPushStreamModule ( https://github.com/wandenberg/nginx-push-stream-module ).

It's better. It now supports websockets.

like image 69
jnbdz Avatar answered Sep 22 '22 19:09

jnbdz