Skip to main content

Module usage

Module usage 

Source
Expand description

The OSS ↔ cloud seam for the proxy hot path.

routing::proxy is the heart of the open-source enlil binary, but it needs two things the OSS build deliberately does not have: per-tenant billing/quota accounting, and a database-backed per-tenant upstream override.

Rather than have the OSS proxy depend on finops::cost_tracker, redis_store and db (which are proprietary), it is generic over ProxyEnv. Both hooks have no-op defaults, so the OSS build gets correct behaviour for free, while the cloud build implements them on AppState.

See DEVELOPMENT_PLAN.md, Step 2.

Structs§

UsageEvent
A completed upstream call, described for downstream accounting.

Traits§

ProxyEnv
The environment the proxy handler runs in.