Load Balancing via Edge Micro to Target servers

We are looking for solution for enabling load balancing with edge micro gateway at target end side. I know EMG does not load balancing out of the box. What is the best approach for this problem. Any help suggestion appreiciated ..

0 1 316
1 REPLY 1

Former Community Member
Not applicable

I'm assuming you are asking about when MG is running on a VM (and not k8s or cf). There are three options (that work apply to Apigee Edge public cloud) I can think of:

1) Use F5/nginx on the southbound. This works for VMs that are mostly static (as in they are not in auto-scaling groups).

2) Use KVM to store a map to proxies or basePath to target endpoints. Use a custom plugin to query the KVM and make routing decisions from there. Here is a sample.

3) Use Consul or Eureka to tell MG which target endpoint the route to. There is a sample plugin here that uses Eureka.