Skip to content

Add plugins to StreamProducer and StreamConsumer #465

@gpauloski

Description

@gpauloski

Describe the Request

There are some common patterns that users may want to apply to object streams on the producer or consumer side.

The producer may want to (1) batch objects, (2) publish a sample of the incoming stream, (3) apply aggregation functions to the stream before publishing. The consumer may want to sample the incoming stream or filter the stream according to metadata.

While not an exhaustive list, we can add support for these mechanisms via plugins / additional parameters. For example, the StreamProducer can take an aggregator: Callable[list[T], T].

Sample Code

No response

Metadata

Metadata

Assignees

Labels

enhancementNew features or improvements to existing functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions