I'm a bit confused between the difference between a load balancer and a route rule. Don't they both dictate the load into the target endpoint... or am I missing something.
Cheers!
Josh
Answer by Anil Sagar @ Google
·
Apr 27, 2018 at 08:25 AM
Load Balancing concept is used to balance API traffic across various servers, Route Rules are used to route the traffic conditionally to different target end points.
See them in action here,
Load Balancing - Explained in 4 Minutes
Route Rules - Explained in 4 Minutes
Hope it helps.
-------------------------------
Anil Sagar
Answer by Sunny Sehrawat · May 06, 2018 at 01:05 PM
@Joshua Soto-Kitcher @Anil Sagar
Why we need multiple targetEndPoint flow per proxy?
- Having multiple targetEndPoint options in routeRule we can direct the API request to a desired target server address configured in the targetEndPoint
- Another utility is we can modify the API experience per target, like we can have different quota configurations for our target servers, different mediation policies we can attach to modify the response from target servers. So overall we can create different API versions for the clients by having multiple targetEndPoints for the API.
So the purpose of <routeRule> tag is just to direct the API request from proxyEndPoint flow to a specific targetEndPoint flow. And Apigee can act as a load balancer, send API requests to named target servers based on either different environment configurations or Apigee's load balancing algorithms.
Best Practice for API Proxy that exposes multiple resource paths and proxies to multiple endpoints 1 Answer
Error while adding additional SOAP Operations under SOAP Passthrough Proxy 1 Answer
How to build a dynamic target end point based on an API proxy request header value ? 1 Answer
How do we call Apigee can use Feign interface? 1 Answer
List of failed Target Servers is not showing in the trace log 0 Answers