The Stream Builder Pipeline
Cortex.Streams uses a fluent builder pattern. Create ? Configure ? Operate ? Sink ? Build ? Run.
Three Steps to Real-Time
Stream Builders provide a fluent API so you can chain operators, configure telemetry, and manage lifecycle—all in a few lines of C#.
-
Create & Configure
Initialize aStreamBuilder<T>and optionally attach telemetry. -
Add Operators
Chain.Map(),.Filter(),.Aggregate(), windows, and custom operators. -
Build, Start & Emit
Call.Build(),Start(), then push data withEmit().
A Rich Library of Stream Operators
Transform, filter, aggregate, window, fan-out, or write your own custom operators—all composable with the fluent API.
Map
Transform every element flowing through the stream with a projection function.
Filter
Keep only events matching a predicate—drop everything else on the floor.
Aggregate
Accumulate values over time with running counters, sums, averages, or custom aggregations.
Window
Tumbling, Sliding, and Session windows to group events by time or count boundaries.
FanOut & Branch
Split a single stream into multiple parallel branches for divergent processing paths.
Custom Operators
Implement your own operator logic and plug it seamlessly into the pipeline.
Full Control Over Your Streams
Start, stop, and query the status of any stream at runtime. Cortex handles graceful shutdown, in-flight event processing, and resource cleanup automatically.
Built for Speed & Scale
High Throughput
Configurable buffer capacities and concurrency levels let you saturate every CPU core.
Low Latency
Sub-10 ms end-to-end latency for lightweight pipelines—ideal for real-time analytics.
Async Processing
First-class async operators ensure non-blocking execution across your entire pipeline.
Start Streaming Today
Install from NuGet, follow the quick-start guide, and have your first pipeline running in under five minutes.