Load Balancing of WebSocket Connections

Hi,

Tyk supports load balancing of websocket connections ?

Hi Iakim,

Yes, this has been supported since version 2.2 of Tyk. In order to use this feature you will need to set the enable_websockets setting in your tyk.conf file to “true”. Further details can be found at this link.

Kind regards,
Jess @ Tyk

Thanks Jess but i do not see how the load balancing for websocket connections works in tyk.

Is it the same as load balancing http ?

How the loadbalancing of websocket connections works in tyk ?

Tyk will basically round-robin open websocket connections to each of your upstream servers, it does not load balance messages, it load balances the long-running connection