Expand description
Coalesced, failover federation fetch of raw event bytes.
Service::fetch is the entry point; behind it a single worker task owns
every in-flight fetch and the dedup map, so no lock guards them. The
per-fetch work splits across the submodules: candidate selection, the
federation transport, and response validation.
Modulesยง
- error ๐
- Internal failure reporting for federation fetches.
- inflight ๐
- Single-flight bookkeeping for one in-flight fetch.
- opts ๐
- Caller contract and result types for a fetch:
Optsin,Outcomeout. - select ๐
- Candidate server selection for a fetch.
- transport ๐
- Federation transport: an
Opand target server in, raw response bytes out. - validate ๐
- Two-tier response validation for fetched federation data.
- worker ๐
- The fetch worker loop: one task owning every in-flight fetch, lock-free.
Structsยง
- Msg ๐
- Request to the worker. The worker replies with a subscription to the coalesced result, deferring the reply under backpressure until a slot frees.
- Opts
- Re-exports the fetch request contract, operation types, and response value.
- Outcome
- Re-exports the fetch request contract, operation types, and response value.
- Service
- Coordinates coalesced, validated federation fetches with candidate failover.
Enumsยง
- Fanout
Growth - Re-exports the fetch request contract, operation types, and response value.
- Op
- Re-exports the fetch request contract, operation types, and response value.
Constantsยง
- REQUESTS_
MAX ๐ - Upper bound on concurrent in-flight fetches across all keys.
Functionsยง
- await_
result ๐
Type Aliasesยง
- Event
Window - Re-exports the fetch request contract, operation types, and response value.