You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flex Gateway version 1.5.x or later supports API instances that expose multiple upstream services through a single consumer endpoint.
48
48
49
-
Flex Gateway manages request traffic by using different routes that can each direct traffic to multiple upstream services. Flex Gateway directs traffic to the routes by using the route order and the individual route's rules.
49
+
Flex Gateway manages request traffic by using different routes that can each direct traffic to multiple upstream services. Flex Gateway directs traffic to the routes by using the route order and the individual route's rules. Additionally, you can add a weighted percentage to each upstream service within a route to manage the percentage of requests sent to the upstream service.
50
50
51
51
In the following diagram, different routes manage requests to flight information databases and to a customer service application. Route one has two upstream services defined, which direct 70% of requests to a stable database and 30% of requests to a beta database.
52
52
53
53
image:multiple-upstreams.png[Flex Gateway manages the traffic to multiple upstreams]
54
54
55
55
=== Routes
56
56
57
-
Each API instance supports up to 10 routes and each route can support up to 10 upstream services. Configure what requests a route can receive by defining route rules and a route order. At least one router per API instance is required.
57
+
Each API instance supports up to 10 routes and each route can support up to 10 upstream services. Configure what requests a route can receive by defining route rules and a route order. At least one route per API instance is required.
58
58
59
59
Before adding additional routes, enter an optional *Route label* for clarity.
60
60
@@ -67,11 +67,11 @@ You can direct requests to different routes by using route rules.
67
67
68
68
To view and edit route rules, click *Route Rules*.
69
69
70
-
All rules are optional. If a rule does not have a value, that rule is ignored. For example, not specifying a host means that the route can service any host if the request meets the other route rules. Not defining any rule means that the route can service every request.
70
+
All rules are optional. If a rule does not have a value, that rule is ignored. For example, not specifying a host means that the route can service any host if the request meets the other route rules. Not defining any rule means that the route can service every request.
71
71
72
72
Different routes can support the same upstream services. If you cannot capture all requests for a particular set of upstream services in a single route rule set, you can define multiple routes with different rules for full coverage.
73
73
74
-
Only requests that meet all of the rules defined in the ruleset are directed to that route.
74
+
Only requests that meet all of the rules defined in the ruleset are directed to that route. If a request does not meet the rules for any route, Flex Gateway returns a `404` error code.
75
75
76
76
Flex Gateway supports the following route rules:
77
77
@@ -134,8 +134,8 @@ To define the route order, use the up and down arrows to arrange the routes.
134
134
Route ordering is very important when a request can meet the route rules of multiple routes. You should order the routes with more complex route rules first. If you do not define a route order, routes are ordered in the order they were created.
135
135
136
136
For example, in a configuration in which route one has the `GET` method defined as a rule and route two has no route rules defined, all `GET` requests are sent to route one and all other requests are sent to route two. If the route order was reversed and route one had no route rules, Flex Gateway would direct all requests to route one before any `GET` requests could reach route two.
137
-
138
-
=== Upstreams
137
+
138
+
=== Upstream Services
139
139
140
140
You can use multiple upstream services in a single route to direct requests to similar services. For example, to test the performance of a new beta upstream service without sending all traffic to the new service, you can direct half of the traffic to a stable upstream service and half to the new upstream service.
0 commit comments