Load Balancing of WebSocket Connections


#1

Hi,

Tyk supports load balancing of websocket connections ?


#2

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


#3

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 ?


#4

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