liveBook · Manning

Routing

As explained in Google Anthos in Action

Traffic routing is the directed selection of destinations for network requests according to routing rules or release-management criteria.

Routing selects destinations for requests according to rules such as service version, user attributes, or traffic percentages. In microservices platforms, it supports controlled releases, resilience testing, and traffic operations without requiring application-code changes. section 4.5.3 section 4.3

Operational routing commonly supports:

  • Split traffic between service versions for A/B testing, canary deployments, or progressive rollouts. section 4.5.3
  • Route requests by preestablished rules, including a particular user-agent, while keeping multiple versions active. section 4.5.3
  • Combine routing with retries, failover, timeouts, circuit breaking, fault injection, and mirroring to manage failure behavior. section 4.0 section 4.3
  • Use Knative Route to map endpoints to one or more immutable Revisions, with traffic rules defined through a Knative Service. section 9.3.2

Progressive rollout

Deploy a corrected service version, send a small percentage of incoming traffic to it, verify its behavior, and increase the percentage until the old version can be retired. Knative expresses the same pattern with traffic entries such as 95% for a current revision and 5% for a candidate revision. section 4.5.3

How Google Anthos in Action covers it

How deep it goes
Explains percentage- and rule-based routing with release examples, but defers detailed routing configuration syntax.
Examples
Uses Istio canary traffic splitting, user-agent selection, and Knative 95/5 revision routing.
What it assumes
Assumes familiarity with microservices, containerized workloads, Kubernetes, and deployed service versions.
What you can do after
Apply it via Istio or Knative to shift traffic gradually between service revisions without application-code changes.
How it connects
Connects routing to service mesh, Istio, Knative, revisions, A/B testing, canary deployments, retries, and circuit breaking.

Also explained in

Compare how 22 books explain routing →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Google Anthos in Action. The section links point to the parts of the book it draws on.