Which is better or nginx proxy_pass nginx rtmp push?

Who can faced, how best to organize the distribution of the video:
Option 1) a source Server with nginx and rtmp module server for distribution via nginx proxy_pass which will proxy the content from the origin server.
OR
Option 2) On each server to install nginx rtmp module and push through to distribute it.
In what variant there will be less load and more stable to work with?
June 10th 19 at 16:37
1 answer
June 10th 19 at 16:39
Firstly what is "Load"
If the network is that load is determined by the bitrate of the video you want to upload, you failed, so the value of the load is impossible to say. It is quite suitable scheme rtmp push with some of the master servers to be with him on multiple hosts to distribute. If the load on the CPU, then unless you transcode videos, then special stress on the CPU will not.

Secondly, what is "Stability"
stream streaming RTMP in the Nude causes a series of problems if the end clients are high-volume users, with uncertain parameters of their networks. Very often rests on the RTMP proxy servers, firewalls. For the stability of the view, and if the efficiency of the broadcast is not particularly important - I recommend HLS. It is slower in the video than RTMP (latency is determined by the download of a chunk, usually within one minute), so not particularly suitable for sporting events, but to watch the news is quite possible.

So for streaming from server to server (origin) - rtmp, from origin to end-users - HLS

Find more questions by tags Nginx