Braess Router
September 20, 2026 · View on GitHub
A bounded Rust semantic router powered by Jev and Poise. Jev selects a handler from your catalog; Poise selects an endpoint in its pool. Uncertain decisions return a local fallback.
Alpha · single server · loopback only. This is a public development release, not a claim of production accuracy or multi-replica coordination.
Try it
Requires Rust 1.97.1 and Python 3.11+ on Linux.
cargo build --locked --release
python3 scripts/gateway_demo.py /tmp/braess-demo --binary target/release/braess-router
The demo prints its URL. POST {"request":"coding"} to /route; also try
general, reasoning, and uncertain. It uses synthetic fixtures and makes no
provider calls. Ctrl-C stops the demo. Use a new output directory for each run.
To run against your own services:
braess-router --config config/gateway.mock.json
Configure the endpoints first. For live Jev, use
the live example and provide
TYPESAFE_API_KEY in the process environment. Handler services remain loopback.
Guarantees and limits
- Bounded ingress, body sizes, deadlines, endpoint admission and uncertainty records.
- Optional durable call reservations and unresolved-request accounting across restart.
- Local rate enforcement, explicit fallback, no automatic upstream retries.
- Timeouts never prove that an upstream request stopped or completed.
/healthreports liveness;/readyreports local capacity, not upstream health.- No distributed quota, public-network listener, or workload accuracy guarantee.
See single-server deployment. Read the operator guide, development guide, and release process. CI uses synthetic fixtures without API keys.
Why Braess?
Dietrich Braess showed that adding a route can worsen traffic in a network. The name is a reminder to measure routing choices rather than assume more paths are better. TypeSafe named Jev after William Stanley Jevons: efficiency can increase demand. Jev decides; Braess directs.
This project is independent of TypeSafe. Naming inspiration does not imply that our endpoint policy optimizes global traffic equilibria.
Licensed under MIT OR Apache-2.0.