ratchetphp / Ratchet

Asynchronous WebSocket server
http://socketo.me
MIT License
6.29k stars 747 forks source link

What is the latest recommended proxy for WSS? Apache or Nginx? #936

Open zhiyong-ft opened 2 years ago

zhiyong-ft commented 2 years ago

Hi,

I am planning to use rachet in production, are trying to survey the best setup. On socketo.me, Mr. boden listed both Apache and Nginx, but in one of the posts in the issues, he suggested questioner to user Nginx.

Then I stumbled upon this post, which states that he would lose 20% connection when using Apache.

So my question, for those who use Apache as proxy for WSS, did you experience any problem? I would assume not many, but want to have some first hand confirmation.

Thanks.

szado commented 2 years ago

I confirm, nginx generally has better performance than apache and its better solution to make reverse proxy for websocket connections (mainly because of lower cpu usage).