Skip to content

aetelier_connect::workers::ingestion_core

Shared ingestion engine (reconnection, classification, health). Shared ingestion core used by both DataWorker and MarketWorker.

IngestionCore encapsulates the full reconnection loop, exchange client spawning, event classification, health monitoring, and gap detection. It sends classified TopicMessages to an mpsc::Sender<TopicMessage> — the owning worker decides what to do with them (publish to sinks, feed into a synchroniser, etc.).

Architecture

┌──────────────┐     mpsc     ┌──────────────┐    mpsc    ┌──────────┐
│ ExchangeWSS  │─────────────→│ IngestionCore │───────────→│  Worker  │
│ Client Task  │  raw events  │ (reconnect +  │  TopicMsg  │ (output  │
│              │              │  classify)    │            │  sinks)  │
└──────────────┘              └──────────────┘            └──────────┘

Skeleton API reference

This page lists the public items in aetelier_connect::workers::ingestion_core with a one-line summary each. Signatures and source live in the SDK repository.

Structs

Item Summary
IngestionCore Shared ingestion engine composed by both worker types.
IngestionReport Summary statistics returned when an IngestionCore finishes.

Functions

Item Summary
classify_event Map an ExchangeEvent to zero or more canonical topic names.
wall_clock_ns Current wall-clock time as nanoseconds since UNIX epoch.
wss_streams Build exchange-specific WSS subscription topics from common fields.
wss_topic_names Build canonical topic names for event classification.