FluxFlow.Components.Routing 0.4.0-alpha.1

This is a prerelease version of FluxFlow.Components.Routing.
There is a newer version of this package available.
See the version list below for details.
dotnet add package FluxFlow.Components.Routing --version 0.4.0-alpha.1
                    
NuGet\Install-Package FluxFlow.Components.Routing -Version 0.4.0-alpha.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FluxFlow.Components.Routing" Version="0.4.0-alpha.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FluxFlow.Components.Routing" Version="0.4.0-alpha.1" />
                    
Directory.Packages.props
<PackageReference Include="FluxFlow.Components.Routing" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FluxFlow.Components.Routing --version 0.4.0-alpha.1
                    
#r "nuget: FluxFlow.Components.Routing, 0.4.0-alpha.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FluxFlow.Components.Routing@0.4.0-alpha.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FluxFlow.Components.Routing&version=0.4.0-alpha.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=FluxFlow.Components.Routing&version=0.4.0-alpha.1&prerelease
                    
Install as a Cake Tool

FluxFlow.Components.Routing

Reusable expression-driven routing components for FluxFlow.

Nodes

Node type Shape Purpose
flow.switch Input → Result, Matched, optional route outputs, Default, Errors Evaluates a route key expression and routes the original input by match status.
flow.correlation Input → Matched, Timeouts, Errors Pairs request and response style messages by key and side expressions.
flow.window Input → Output, Errors Groups input items into count or time based windows.

The package does not choose an expression language. Applications provide one or more IFlowExpressionEngine implementations during registration.

var registry = new RuntimeNodeFactoryRegistry()
    .RegisterRoutingComponents(options => options
        .UseExpressionEngine(appExpressionEngine)
        .RegisterType<AppMessage>("app.message")
        .UseContextFactory(new AppMessageContextFactory()));

Basic configuration:

{
  "type": "flow.switch",
  "inputType": "app.message",
  "engine": "my-engine",
  "expression": "category",
  "routes": [ "priority", "standard" ],
  "routeOutputs": {
    "priority": "Priority",
    "standard": "Standard"
  },
  "defaultRoute": "unknown"
}

Result emits FlowSwitchResult<TInput> so downstream links can inspect RouteKey, Matched, and the original Value. Matched emits the original input when the key is in routes. Default emits the original input when the key is empty or not configured.

routeOutputs is optional. When configured, the runtime adds those output ports and emits the original input to the matching route port. Several route keys can map to the same output port. Route output port names must be valid engine port names and cannot collide with built-in switch ports.

If routes is empty, every non-empty route key is treated as matched. This lets hosts use the result envelope and link conditions without predeclaring every route key.

Expression evaluation failures emit FlowError and the node continues processing later messages.

Correlation

Use flow.correlation when a workflow receives related messages on one stream and needs to pair them by key.

{
  "type": "flow.correlation",
  "inputType": "app.message",
  "engine": "my-engine",
  "keyExpression": "correlationId",
  "sideExpression": "kind",
  "requestSide": "request",
  "responseSide": "response",
  "timeoutMilliseconds": 30000,
  "maxPending": 1024
}

Matched emits FlowCorrelationMatch<TInput> with the request, response, key, timestamps, and elapsed time. Timeouts emits FlowCorrelationTimeout<TInput> for unmatched pending inputs when the timeout is observed before the next input, and for any remaining pending inputs when the node completes.

Invalid keys, unsupported sides, duplicate same-side messages, expression failures, and pending-capacity failures emit FlowError and the node continues processing later messages.

Window

Use flow.window when a workflow needs batches of items before a downstream node runs.

{
  "type": "flow.window",
  "inputType": "app.message",
  "maxItems": 100,
  "timeMilliseconds": 5000,
  "emitPartialOnCompletion": true
}

Output emits FlowWindow<TInput> with a sequence number, item list, start and emit timestamps, duration, count, and emit reason. maxItems emits when the window reaches the configured count. timeMilliseconds emits when the current window has been open for that duration, even if no later input arrives. When both are configured, whichever condition happens first emits the window.

At least one boundary must be configured. On completion, a partial window is emitted by default. Set emitPartialOnCompletion to false to discard partial windows.

Composition Guidance

Use this package as one part of a host-composed graph. See Component Composition for recommended host boundaries, package boundaries, and extraction timing.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on FluxFlow.Components.Routing:

Package Downloads
FluxFlow.Components.Routing.Composition

Typed JSON routing registration and Designer metadata over host-owned selectors and clocks.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
7.0.0-rc.1 96 9/5/2026
6.0.1 176 8/3/2026
3.0.2 134 7/3/2026
3.0.1 183 7/2/2026
3.0.0 131 6/19/2026
2.0.0 151 6/18/2026
1.2.1 131 6/15/2026
1.2.0 434 6/12/2026
1.1.0 125 6/5/2026
1.0.0 132 6/4/2026
0.10.0-alpha.1 250 6/2/2026
0.9.0-alpha.1 79 6/2/2026
0.8.0-alpha.1 76 6/2/2026
0.7.0-alpha.1 69 6/2/2026
0.6.1-alpha.1 85 6/2/2026
0.6.0-alpha.1 96 6/2/2026
0.5.0-alpha.1 68 6/2/2026
0.4.0-alpha.1 74 6/2/2026
0.3.0-alpha.1 70 6/2/2026
0.2.0-alpha.2 73 6/2/2026
Loading failed

Adds flow.window for count and time based stream windows.