Load Balancing

Tyk supports native round-robin load-balancing in its proxy. This means that Tyk will rotate requests through a list of target hosts as requests come in. This can be very useful in microservice architectures where clusters of specialised services are launched for high availability.

Setting up load balancing is done on an API by API basis, and is defined in the API Definition file/object:


Set this value to true to have a Tyk node distribute traffic across a list of servers. **Required: ** You must fill in the target_list section.


A list of upstream targets (can be one or many hosts):

"target_list": [

See the section on Service Discovery to see how you can integrate a service discovery system such as Consul or Etcd with Tyk and enable dynamic load balancing support.

Was this article helpful to you? Yes No