How apigee multiple regions arrive target server based on latency/ healthcheck, thanks.

How apigee multiple regions arrive target server based on latency/ healthcheck, thanks.

1. geolocation

2.latency

3.healthcheck (curl)

For item 1: geolocation, I guess write as below:

<ProxyEndpoint>
   ....
  <RouteRule name='East'>
    <TargetEndpoint>eastBackendTarget</TargetEndpoint>
    <Condition>system.region.name ~~ "us-east-.+"</Condition>
  </RouteRule>
  <RouteRule name='West'>
    <TargetEndpoint>westBackendTarget</TargetEndpoint>
    <Condition>system.region.name ~~ "us-west-.+"</Condition>
  </RouteRule>
  <RouteRule name='Default'>
    <TargetEndpoint>defaultBackendTarget</TargetEndpoint>
  </RouteRule>
</ProxyEndpoint>

How about latency?  Like default RouteRule is go to eastBackendTarget or westBackendTarget based  on latency.

Also need this feature, in case us-east-1 target server cluster is down (based on one healthcheck API), all workload (even us-east-1 load) should go to westBackendTarget?

Thanks.

0 0 37
0 REPLIES 0