Multi Region target-server traffic Routing

Hi,

We are planning to achieve traffic load on the multi region based target-servers, based on the requester-region OR a specific header supplied by the requester like Akamai .

I have gone through the below link where similar asked is proposed by defining the route-rules and creating multiple target-server for each region.

Do we have any other approaches ?

How to dynamically call different target endpoints based on region

https://community.apigee.com/articles/2793/how-to-geo-locate-calls-to-target-endpoint.html

0 5 754
5 REPLIES 5

Not applicable

We have implemented a similar requirement. We have created two alias names in the F5 level. one for each region. If A alias name is used in the request then the LB will route the traffic to A data center. There will be two target endpoints in each proxy each like A-TE and B-TE. requests coming to A data center will route to A-TE target endpoint on the basis of the alias name. A-TE target endpoint will have all the backend services of A region and similar for B region.

Else you can put region A targets in one KVM and region B in another KVM. You can decide which KVM values will be extracted on the basis of header or url. Then you can use a javascript and load balance between the targets of particular KVM and set the target url dynamically. This is also implemented in our infrastructure.

Thanks

1) approach-1 - creating multiple target endpoints region based and route the traffic to the specific target based on the condition in route-rule

Looks good, but still i can see here we are duplicating the target-server just for different target-host


2) approach-2 creating the target host in the javascript

This look good but when we have the 2 way ssl enabled on the target-server then it would be tricky right ?

approach -1, we will not duplicate target servers, for target endpoint A all the target-servers of region A will be configured and for B only the targets of B region will be configured. This will allow you the extra advantage of using apigee load balancing and fallback configuration.

In approach 2 : you can configure the target endpoint configuration to set dynamic values for SSL configuration and the values for those can be configured in javascript or KVM. I prefer to configure in KVM with proxy name.

Ok, Thanks

Got it. We only have 1 target-server to each region

That's fine then, it will be simple for you.