Gateway sharding
How hot products scale across Durable Object shards.
How hot products scale across Durable Object shards.
Some gateway state must be coordinated consistently, such as usage allocation, credit reservation, and concurrency. Farther Shore uses Durable Objects for that coordination.
A single Durable Object is simple and consistent, but very hot products can outgrow one object. Sharding lets a product spread coordinated work across multiple objects while keeping routing deterministic.
Sharding should be invisible to subscribers:
The only expected change is higher runtime capacity for hot products.
The gateway emits usage events. Core ingests aggregated usage and can identify hot shard groups. When a product exceeds the configured threshold, core updates the product shard policy and publishes the new policy to edge configuration.
The gateway then picks up the policy and routes new coordinated work across the expanded shard count.
During a scaling transition, the gateway may need to honor both the previous and current policy so in-flight or recently cached work remains safe. That handoff is managed by the runtime policy published by core.
For launch and growth, watch:
Sharding increases capacity. It does not replace good product limits or abuse protection.