Hi,
We believe that the other way around is a bit better: have nginx/apache in front of the streaming server. It has pros and cons:
Pros:
– possible to do load balancing
– security and accounting done on the web server side where much more tools are available
– streaming server should do what it needs to do best: do streaming, not routing weird DoS request, robots and all that kind of non streaming suff
– no coding required, only configuring a web server. This is non-intrusive on any streaming server, whatever that might be, including EMS
Cons:
– adds some overhead on top of the web server, but that is kind of insignificant compared with the already very very very bad design of the RTMPT in the first place. It is HTTP polling based
Best regards,
Andrei