Expand description
Store-backed subscription runtime (Packet C).
syncbat owns replay, live wake, cursor resume, ACK/backpressure, and delivery envelopes. Wire framing lives in netbat.
Structs§
- Composite
Subscription Runtime - Store-backed composite subscription runtime dispatching event and projection routes.
- Entity
Stream Cursor V1 - Versioned opaque entity-stream cursor owned by syncbat.
- Entity
Stream Envelope V1 - Canonical entity-stream payload envelope encoded with
batpak::canonical::to_bytes. - Entity
Stream Route Binding - Binding fields needed to open an entity-stream subscription session.
- Entity
Stream Session - Store-backed entity-stream subscription session.
- Event
Stream Cursor V1 - Versioned opaque event-stream cursor owned by syncbat.
- Event
Stream Envelope V1 - Canonical event-stream payload envelope encoded with
batpak::canonical::to_bytes. - Event
Stream Session - Store-backed event-category subscription session.
- Event
Subscription Runtime - Store-backed event-subscription runtime.
- Operation
Status Route Binding - Binding fields needed to open an operation-status subscription session.
- Operation
Status Stream Cursor V1 - Versioned opaque operation-status-stream cursor owned by syncbat.
- Operation
Status Stream Envelope V1 - Canonical operation-status-stream payload envelope encoded with
batpak::canonical::to_bytes. - Operation
Status Stream Session - Store-backed operation-status subscription session.
- Projection
Route Binding - Route binding passed to projection projectors at session open.
- Projection
Stream Cursor V1 - Versioned opaque projection-stream cursor owned by syncbat.
- Projection
Stream Envelope V1 - Canonical projection-stream payload envelope encoded with
batpak::canonical::to_bytes. - Projection
Stream Session - Store-backed projection subscription session.
- Receipt
Stream Cursor V1 - Versioned opaque receipt-stream cursor owned by syncbat.
- Receipt
Stream Envelope V1 - Canonical receipt-stream payload envelope encoded with
batpak::canonical::to_bytes. - Receipt
Stream Route Binding - Binding fields needed to open a receipt-stream subscription session.
- Receipt
Stream Session - Store-backed receipt-stream subscription session.
- Runtime
Cursor - Opaque runtime cursor bytes passed between syncbat sessions and netbat transport.
- Session
End - Terminal stream end delivery.
- Session
Error - Terminal stream error delivery.
- Session
Event Delivery - One delivered event or projection update with cursor and envelope bytes.
- Session
Watermark Delivery - Coalesced watermark delivery.
- Subscription
Id - Globally unique subscription id (
orders.open.v1grammar). - Subscription
Registry - Typed subscription route table for the runtime engine.
- Subscription
Runtime Config - Runtime limits for subscription delivery sessions.
- Subscription
Store - Cloneable syncbat-owned store handle for subscription runtime sessions.
- Typed
Projection Projector - Typed projector backed by
Store::watch_projection_with_cursor.
Enums§
- Operation
Status Position Kind - Resume position encoded inside
OperationStatusStreamCursorV1. - Position
Kind - Resume position encoded inside
EventStreamCursorV1. - Projection
Position Kind - Resume position encoded inside
ProjectionStreamCursorV1. - Session
Control - Client control input accepted after subscribe.
- Session
Delivery - One server-side delivery frame produced by the runtime engine.
- Session
Poll - Result of one runtime poll step.
- Subscription
Route - Declared route for one subscription id.
- Subscription
Runtime Error - Error returned by the subscription runtime engine.
Constants§
- CURSOR_
V1_ LEN - Fixed on-wire event cursor byte length.
- ENTITY_
STREAM_ CURSOR_ V1_ LEN - Fixed on-wire entity-stream cursor byte length.
- MAX_
SUBSCRIPTION_ ID_ BYTES - Maximum bytes accepted for a subscription id under the subscription-id
grammar. This is the single source the boundary crates (
hostbat,netbat) share so their id caps can never disagree with the runtime registry’s. - OPERATION_
STATUS_ CURSOR_ V1_ LEN - Fixed on-wire operation-status cursor byte length.
- PROJECTION_
CURSOR_ V1_ LEN - Fixed on-wire projection cursor byte length.
- RECEIPT_
STREAM_ CURSOR_ V1_ LEN - Fixed on-wire receipt-stream cursor byte length.
- SOURCE_
KIND_ ENTITY_ STREAM - Entity stream source kind.
- SOURCE_
KIND_ EVENT_ CATEGORY - Event-category stream source kind.
- SOURCE_
KIND_ OPERATION_ STATUS - Operation-status stream source kind.
- SOURCE_
KIND_ PROJECTION - Projection stream source kind.
- SOURCE_
KIND_ RECEIPT_ STREAM - Receipt stream source kind.
Traits§
- Projection
Projector - syncbat-owned projector that opens typed projection subscription sessions.
- Subscription
Session - Runtime session polled by transport adapters.
- Subscription
Session Factory - Factory that opens subscription sessions from wire
SUBSCRIBEinputs.
Functions§
- cursor_
invalid_ error - Cursor invalid terminal error before session open.
- cursor_
mismatch_ error - Cursor mismatch terminal error before session open.
- unknown_
subscription_ error - Unknown subscription terminal error before session open.