fluvio icon indicating copy to clipboard operation
fluvio copied to clipboard

How to dispatch mapped topic values to another topic.

Open rhrn opened this issue 2 years ago • 4 comments

Hi everyone! For example, I have source topic and, and I need target topic with mapped values. How can I do with platform features (connectors)?

#topic "source_values"
--{1}--{2}--{3}--
#topic "source_values_mapped"
--{2}--{4}--{6}--

rhrn avatar Oct 04 '22 19:10 rhrn

One way to accomplish this is to pipe the result of the consumer with mapping and pipe back to the producer:

$ fluvio consume topicA --smart-module map_module | fluvio produce topicB

Where map_module is map SmartModule. We have a roadmap item to pipe one topic to another topic.

sehz avatar Oct 04 '22 20:10 sehz

Stale issue message

github-actions[bot] avatar Dec 04 '22 11:12 github-actions[bot]

Another way to do this is with a connector and the fluvio crate in the project.

Use cdk to build a connector with consumer/producer parameters. (connector config already has input topic and smartmodule configs.).

Or you can talk to @drc-infinyon our product manager about getting onto our preview releases which have another way to do this.

digikata avatar Oct 18 '23 22:10 digikata

@sehz this is a good use case for ssdk rather than connectors.

ajhunyady avatar Oct 19 '23 01:10 ajhunyady

Implemented by SDF - https://github.com/infinyon/stateful-dataflows-examples/tree/main/primitives/map

ajhunyady avatar Apr 24 '24 22:04 ajhunyady