Dynamo · main checked Nov 9, 2026

Global Router

Route across pools, then schedule within a pool. HTTP at the global level; KV-aware worker selection stays local.

Click a pool to pick where it goes.■ global level   ■ pool level   ■ KV & load
Pool signals

What the global router knows about a pool

PoolRelay aggregates readiness and load. Worker placement stays local; active Relay replicas are counted once.

Current implementation · pool selection

Prefer the session’s pool; move for headroom

Round-robin is the default. Select affinity to use region, load and session-to-pool pins.

Pins: memory by default · optional DynamoDB shares soft affinity across replicas/restarts. Pool errors pass through; no automatic retry.
Current implementation · discovery

A separate service lists pools and routers

Global Discovery Service exposes HTTP registration and listing APIs, backed by leased records.

Current implementation · replicas & connections

Serving and telemetry have separate paths

Global Frontend opens HTTP serving connections. Telemetry can be initiated from either side.

Current implementation · failure handling

Discovery membership is not routing readiness

A cached candidate needs a live Ready Relay view. Unknown load is full, not idle.

Models discovery + Relay-configured routing. Static pools without Relay state have different eligibility behavior.
Future design · illustrative simulation

Future: continue an answer across pools

Not implemented in current Global Frontend. Today, unreachable pools return 503; pool responses pass through.

What the client sees
Last request the global frontend sent
Future design · illustrative simulation

Future: coordinate a whole pool’s drain

Proposed global lifecycle contract. Existing local shutdown does not provide cross-pool drain and retry.

Deadline
Implementation & direction · as of Nov 9, 2026

Implementation, validation and next steps

Upstream main is a code baseline. It is not a GA or release-packaging guarantee.

Implemented on main
  • HTTP request/response forwarding
  • Round-robin, least-in-flight, affinity
  • Optional DynamoDB soft affinity
  • GDS: leases, memory / DynamoDB
  • Active-active Relay views; both connection directions
Validate per deployment
  • Release/image availability
  • Cloud networking and storage
  • Failure and recovery behavior
  • Latency, load and affinity metrics
  • Cloud-specific dependencies need separate validation
Direction / future
  • Explore prefix-derived affinity
  • Consolidate global components with Stargate
  • Cross-pool token continuation
  • Coordinated drain and retry
  • Cross-pool P/D needs a KV-transfer contract
Keep global and local services independently deployable. Packaging may share images/executables; optional in-process deployment can coexist.
1 / 10