PoCAT Documentation Get Started

Advanced Routing Configuration

Declarative routing priority, canary rollout, and rollback.

Last updated: 2026-05-27 Section: Configuration

Manage routing with declarative rules and explicit priorities so behavior stays predictable after deploy.

Priority levels

LevelRule typeExamplePriority range
L1Security / emergency blockBlocked IP, bad headers200+
L2Tenant / product routingX-Tenant based100–199
L3Default businessPath + Method10–99
L4Fallbackdefault target0–9
<route priority="120" match="method=POST,path=/v1/payment/*">
  <when header="X-Tenant=bank-a" target="svc-pay-a"/>
  <when header="X-Tenant=bank-b" target="svc-pay-b"/>
  <otherwise target="svc-pay-default"/>
</route>

Update routing rules

  1. Add rules under routes/ XML and assign priorities.
  2. Validate match success rate and fallback ratio in staging.
  3. Roll out to production via canary (5% → 25% → 100%).
  4. On issues, roll back to the previous XML revision immediately.