Design a custom routing graph
Who: the router’s owner · custom routers only Where: Router → open the router- Open the router. Drag actions from the Actions palette onto the canvas, or click them.
- Build the graph from left to right: signals read the request, a decision combines signals into a route, an algorithm chooses among the route’s deployments, and plugins change the request or the answer. Wire a step to the one it depends on. A signal or projection connects to the start; an algorithm or plugin must connect to a decision.
- Click a node to name it and set its Parameters. Use Auto Layout, Vertical Layout, Horizontal Layout and Fit View to tidy the canvas.
- Click Save. This validates the graph, makes the router active and returns you to the list (“Router saved”). Errors name the step that failed.
The building blocks
Signals: what to look at in the request
Decisions and projections: how signals become a route
Algorithms: how a route picks a deployment
Plugins: change the request or the answer
Two recipes
Canary: 90/10
- Create a Decision whose rule matches the requests you want to split.
- Set its Endpoints to the stable and the new deployment.
- Attach Weighted Random, with weights 90 and 10.
- Save and publish. To widen the rollout or roll back, change the weights and save again.
Cascade: cheap first
- Create a Decision whose rule matches the requests to cascade.
- Set its Endpoints: the cheap model first, the strong one last.
- Attach Confidence Looper with Small to Large and a threshold such as 0.7.
- Raise the threshold for more quality, lower it for more savings.