Destination Types

As we saw in the Destination Selection section, Routes in Gloo contain a Matcher to determine if a request should be passed along the route. If a route is matched, then the route also specifies an action to take: routing to one or more destinations, redirecting, or returning a direct response.

In this section, we’ll take a deeper look at different ways to specify route destinations. Most commonly, a route destination is a single Gloo Upstream. It’s also possible to route to multiple Upstreams, by either specifying a multi destination, or by configuring an Upstream Group. Finally, it’s possible to route directly to Kubernetes or Consul services, without needing to use Gloo Upstreams or discovery.

When routing to an Upstream, you can take advantage of Gloo’s endpoint discovery system, and configure routes to specific functions, such as a REST endpoint, a gRPC service, or a cloud function like AWS Lambda.

The full list of destination guides is listed below. We recommend starting with Static Upstreams, and then evaluating more complex route destination types based on your needs.