In Fluvio, data modification is done using SmartModules, user-defined functions converted to WebAssembly (WASM). Several SmartModules can form a Transformation Chain, working in sequence—each one modifies the data and passes it to the next. Both the sending (Producer) and receiving (Consumer) ends can use these chains; for the Producer, modification happens before the data is saved to the topic, while for the Consumer, it occurs before sending the data.
Transformation Chaining is available for:
Fluvio Client
Fluvio CLI
SmartConnectors
Setting It Up
Each transformation in the chain is a SmartModule, paired with some specific instructions. Typically, you’d set this up in a yaml file.
In this example, there’s one transformation done by a SmartModule named infinyon/[email protected]. Ensure this SmartModule is available in your cluster:
You can arrange multiple SmartModules to work in sequence. The output from one SmartModule is used as the input for the next, so their order is important.