Skip to content

Hub

The hub is a separate process that holds the live sessions of several scripts, lets viewers choose one, keeps an ended session's last data and forwards controls when allowed.

Field Value
ID STR-06
Status Shipped
Scope Core
Pillar Live Data, Streaming and Recordings
Sprint None
Depends On Network Streaming (STR-05)
Unblocks caliper serve (COR-11)
Spec Page from a Hub or a Script (EMB-27)
Streaming, the Hub and Caliper API on Windows (PLT-08)
Recordings Through the Hub (STR-15)
Distributed Training in One View (STR-40)
Docs Hub Setup
Branches None
Design None

Coverage Ledger

  • Branch sprint4-integ3, d0ff8947, 92afbbee, b6ed1bf7, 3236d239, 1c5fc75c, 01de675b, 435447d9, d33b7a5d, 65462943, 8163cf51, a15d3cce, b52327b3. The hub's scene support: it announces scenes, keeps the newest batch per entity part, class table and transforms for a late viewer, splits large batches, and bounds its in-order queues.
  • Branch sprint4-time, 6273f1d1. The hub's timelines: the hub announces timelines, keeps a session's timelines and each retained series value's stamp, and forwards stamps only to viewers that announced them.
  • design/roadmap.md, under Where things stand. Streaming to notebooks, browsers and the app, the hub, Caliper API v0 and caliper build are built.
  • design/roadmap.md, under Streaming and embedding. Built so far: embedding package, network streaming over protocol v3 with data views, caliper.serve(), notebook widgets, 3.1 controls, app and viewer attach by link, hub, browser views.
  • design/windows-parity.md, under Where Windows stands. The network stream, hub, Caliper API, caliper build, web viewer and notebook widget are built and tested on macOS; the WebSocket layer, hub and API are compiled, not tested on Windows.
  • design/wire-protocol-3-2.md on the branch sprint4, under The state of a scene for a new subscription. A producer or hub sends a scene's state, built from the class table, transforms, cameras and newest batches, to a late subscriber.
  • design/wire-protocol-3-2.md on the branch sprint4, under Flow Control. Flow control: scene updates coalesce per entity part, clears keep their order, split pieces go together, text lines never drop silently, and playback obeys max_rate.
  • design/wire-protocol-3-2.md on the branch sprint4, under Hub Forwarding. A 3.2 hub filters additions for older viewers, keeps scene state and text for late viewers, answers CURSOR and records or serves recordings.
  • design/wire-protocol-3-2.md on the branch sprint4, under Limits. Limits of 3.2 messages, such as the retained text lines and scene state counted toward the hub's 1 GiB budget.
  • design/wire-protocol-3-2.md on the branch sprint4, under Open Decisions. Open decisions: the timeline declaration as a VIEWS key, server-side playback, time windows as a later key window, the text log's levels, and scene state at the hub.
  • Shot and Serve Commands, caliper serve. caliper serve runs the hub with --port, --token-file, --assets and --allow-control, and writes a hub file.
  • Network Streaming Calls, connect. connect streams the script to a hub instead of listening itself.
  • Wire Protocol, Connection Setup. The upgrade request, hello and welcome, choosing a session and the producer connection to a hub.
  • Hub Setup. Run a hub with caliper serve, connect scripts and choose a session in a viewer.
  • Pull request #14. Pull request 14 (merged) delivers sprint 2: wire protocol v3 and 3.1, Caliper LIB serving, data views, browser views, the hub, the app attaching to a stream, interactive controls, Caliper API v0, macOS 14 target and CI for the browser views.
  • Orchestrators' notes, sprint2/PR.md. The hub, caliper serve, with --allow-control off by default.

Roadmap Graph Feature in Graph