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.?
Asked
Active
Viewed 46 times
2 Answers
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;
}
![](../../users/profiles/306795.webp)
Tim
- 30,383
- 6
- 47
- 77
0
It is possible with different controllers like:
Additional resources:
Hope this help.
![](../../users/profiles/515276.webp)
Mark
- 304
- 1
- 8