[Background: using Apigee on-prem fronting a bunch of microservices]
Apigee provides the API to dynamically add named TargetServer objects and that's great. However, when it comes to the TargetEndpoint configuration for loadbalancing, it seems I have to provide a static list of named servers, and that seems not so great.
I'm operating in a microservice environment, and I want my services to register themselves with something like Consul or Eureka. Then I would like to pump that data into Apigee for dynamic loadbalancing between instances but I can't seem to do that with a static list of named targets. To get around this, I have positioned a load balancer between Apigee and the services to perform the task, but it would be great to not have to.
Am I missing something in Apigee that would allow me to do this (some magic variable I can set, pulling the list of servers from the key/value map, etc)? Or am I trying to fit a square peg in a round hole here and I should stick with the load balancer between Apigee and the services?