TensorMesh

PLATFORM / ARCHITECTURE

Stateless Rust proxy built for multi-provider resilience.

Every request traverses a bounded four-stage pipeline adding 0.4 ms at P95 with zero payload retention.

01 / REQUEST LIFECYCLE

Four bounded stages from edge ingest to upstream dispatch.

01 0.08 ms

Edge Ingest

TLS 1.3 termination at 18 Anycast PoPs with OpenAI-compatible wire parsing and API key scoping.

02 0.19 ms

Semantic Lookup

Exact hash check followed by regional HNSW vector match against tenant-isolated cache partitions.

03 0.07 ms

Policy & Circuit Engine

Evaluates sliding-window 429/5xx ratios, TTFT ceilings, and per-workspace dollar budgets before dispatch.

04 0.06 ms

Normalized Upstream Dispatch

Translates tool schemas, system prompts, and streaming SSE frames across heterogeneous model providers.

02 / CIRCUIT BREAKER

Automatic health scoring per model & region.

Sliding-window telemetry isolates 429 quota saturation and elevated TTFT before application timeouts cascade.

State Transition Trigger Routing Action
CLOSED Error rate < 1.5% and TTFT < 1,800 ms 100% traffic to primary provider region
DEGRADED 429 burst >= 3% over 15s window Shift 50% traffic to secondary region or mirror
OPEN 5xx >= 5% or timeout >= 3,500 ms Immediate 100% reroute to declared fallback model
HALF-OPEN 30s cooldown elapsed Send 2% canary probes; restore on 10 consecutive OKs

03 / REGIONAL FABRIC

Primary edge PoPs & direct peering.

Node Location P95 Overhead Upstream Peering
IAD-01 Ashburn, US-East 0.34 ms OpenAI, Anthropic, Vertex, Bedrock
SJC-02 San Jose, US-West 0.39 ms OpenAI, Anthropic, Vertex, Fireworks
FRA-01 Frankfurt, EU-Central 0.41 ms Azure EU, Vertex EU, Mistral, Bedrock
SIN-01 Singapore, AP-South 0.46 ms Vertex AP, Bedrock AP, OpenAI Global

04 / SECURITY BOUNDARY

Zero payload retention by default.

  • — Prompts and completions remain strictly in volatile memory.
  • — Envelope encryption via customer-managed AWS KMS or GCP KMS keys.
  • — Tenant-isolated vector cache namespaces with strict TTL eviction.
  • — SOC 2 Type II audited with signed HIPAA BAA on Enterprise VPC.