Skip to content

rust(feat): SiftStreamAutoRegister — inline flow registration wrapper#618

Merged
tsift merged 4 commits into
mainfrom
rust/sift-stream-auto-register
Jun 9, 2026
Merged

rust(feat): SiftStreamAutoRegister — inline flow registration wrapper#618
tsift merged 4 commits into
mainfrom
rust/sift-stream-auto-register

Conversation

@tsift

@tsift tsift commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Adds SiftStreamAutoRegister<T> to sift_stream and SiftStreamAutoRegisterPy to sift_stream_bindings.

Flows are registered with Sift automatically on first send. If a FlowConfig for the flow was provided during construction of the SiftStreamAutoRegister struct, that will be used to register to the Flow. This allows providing types such as enums and bitarrays, as well as channel descriptions, units, and other metadata. Otherwise, a minimal config is generated based on the channel-name and type (the only available information at ingest time).

Known flows can still be pre-registered via IngestionConfigForm at init time to eliminate first-send latency. Subsequent sends for any registered flow are local cache-hits with no network overhead.

Adds SiftStreamAutoRegister<T> to sift_stream and SiftStreamAutoRegisterPy
to sift_stream_bindings.

Flows are registered with Sift automatically on first send. The FlowConfig
is derived from the Flow's channel value types so callers need no upfront
schema. Known flows can still be pre-registered via IngestionConfigForm to
eliminate first-send latency. Subsequent sends for any registered flow are
local cache-hits with no network overhead.
@tsift tsift force-pushed the rust/sift-stream-auto-register branch from 4da23a7 to 18c49fc Compare June 5, 2026 18:49
Comment thread rust/crates/sift_stream/examples/auto-register/main.rs Outdated
@tsift tsift requested a review from marc-sift June 9, 2026 17:05
@tsift tsift merged commit 9c02f47 into main Jun 9, 2026
21 checks passed
@tsift tsift deleted the rust/sift-stream-auto-register branch June 9, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants