Skip to content

Add async buffering & backpressure to stream processing - #187

Merged
eneshoxha merged 1 commit into
v3.0/releasefrom
v3/feature/asynchronous-processing-enhancements
Jan 28, 2026
Merged

Add async buffering & backpressure to stream processing#187
eneshoxha merged 1 commit into
v3.0/releasefrom
v3/feature/asynchronous-processing-enhancements

Conversation

@eneshoxha

Copy link
Copy Markdown
Contributor

Introduces StreamPerformanceOptions for configuring buffered async processing, backpressure strategies (Block, DropOldest, DropNewest, ThrowException), batching, and concurrency. Adds new IStream methods: EmitAsync, EmitBatchAsync, EmitAndForget, StopAsync, and GetBufferStatistics. Implements internal BufferedProcessor using System.Threading.Channels. Maintains backward compatibility and integrates with error handling. Includes comprehensive unit tests and project file updates.

Introduces StreamPerformanceOptions for configuring buffered async processing, backpressure strategies (Block, DropOldest, DropNewest, ThrowException), batching, and concurrency. Adds new IStream methods: EmitAsync, EmitBatchAsync, EmitAndForget, StopAsync, and GetBufferStatistics. Implements internal BufferedProcessor<T> using System.Threading.Channels. Maintains backward compatibility and integrates with error handling. Includes comprehensive unit tests and project file updates.
@eneshoxha eneshoxha added this to the Cortex v3.0 milestone Jan 28, 2026
@eneshoxha eneshoxha self-assigned this Jan 28, 2026
@eneshoxha eneshoxha added enhancement New feature or request feature This label is in use for minor version increments labels Jan 28, 2026
@eneshoxha
eneshoxha merged commit 8242b75 into v3.0/release Jan 28, 2026
@eneshoxha
eneshoxha deleted the v3/feature/asynchronous-processing-enhancements branch January 28, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature This label is in use for minor version increments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Asynchronous Processing Enhancements [Feature]: Memory Management and Performance Optimizations

1 participant