Monday, May 19, 2014

NGINX as a WebSockets Proxy

The WebSocket protocol provides a way of creating web applications that support realtime bi-directional communications between clients and servers.  Part of HTML5, WebSockets makes it much easier to develop these types of applications then the methods previously available.  Most modern browsers support WebSockets including Firefox, Internet Explorer, Chrome, Safari and Opera and more and more server application frameworks are now supporting WebSockets as well.
For enterprise production use, where multiple WebSocket servers are needed for performance and high availability, a load balancing layer that understands the WebSocket protocol is required, and NGINX has supported WebSockets since NGINX 1.3 and can act as a reverse proxy and do load balancing of WebSocket applications.
The WebSocket protocol is different than the HTTP protocol, but the WebSocket handshake is compatible with HTTP, using the HTTP Upgrade facility to upgrade the connection from HTTP to WebSocket.  This allows WebSocket applications to more easily fit into existing infrastructures.  For example, WebSocket applications can use the standard HTTP ports 80 and 443, thus allowing the use of existing firewall rules.

1 comment:

  1. Selain itu cara bermain permainan ini juga sangat sederhana. Dan pemain juga bisa dengan mudahnya menang di dalam permainan ini, tergantung dari keberuntungan masing – masing.
    asikqq
    dewaqq
    sumoqq
    interqq
    pionpoker
    bandar ceme terbaik
    hobiqq
    paito warna
    bocoran sgp
    data hk

    ReplyDelete