Creating Routers

Set up routers to intelligently route requests to different A/B tests based on dynamic conditions.

Routers are intelligent routing layers that dynamically direct incoming requests to different A/B tests based on configurable rules and conditions.

Each router acts as a smart gateway: it receives requests, evaluates them against your routing logic, and forwards them to the appropriate A/B test, enabling sophisticated request orchestration and traffic distribution.

Core Components

Each router requires two key components:

  • Router Rules: Define conditions that determine how requests are routed (based on request properties, user segments, or custom logic)
  • Target A/B Tests: Connect to existing A/B tests that will receive routed traffic

How It All Works Together

Here's the flow when a request hits your router:

  1. Router receives an incoming request from your application
  2. The request is evaluated against configured routing rules to determine which target to use
  3. Based on the matching rules, the router selects the target A/B Test
  4. The request is forwarded to the selected A/B test which runs it through its variants
  5. Results are returned to your application and logged for analysis

This creates a flexible routing layer: you can segment traffic by user properties, gradually roll out new variants, or conduct sophisticated multi-test experiments without changing your application code.