1

I have two application Java base and Go base application. What is the best way to build a traffic distribution that will send 30% of request traffic to Java base application and 70% to Go base application using load balancer. This activity will be built on a docker composer file or Kubernetes Is there a better way to archive this task.?

Lloyd
  • 11
  • 1

2 Answers2

2

Nginx does weighted routing. If you get your traffic to Nginx you can then send it out to the containers to service the requests however you like.

upstream backend {
  server backend1.example.com weight=5;
  server backend2.example.com;
  server 192.0.0.1 backup;
}
Tim
  • 30,383
  • 6
  • 47
  • 77
0

It is possible with different controllers like:

Additional resources:

Hope this help.

Mark
  • 304
  • 1
  • 8