Replies: 12 comments 25 replies
-
cc : @graphcareful @VadimPlh @vsaraswat @dswang @vuldin this is good idea. What other metadata should we allow from the cli, maybe offset management too? |
Beta Was this translation helpful? Give feedback.
-
so the output topic name is result in the example code because that is the sole key in the dictionary of the return values from the apply method. The wasm engine itself tacks on the interesting syntax you see there so upon invocation of a list topics command you can easily denote which ones were created by coprocessors, for debugging capability. https://github.com/vectorizedio/redpanda-examples/blob/main/wasm/js/transform_avro/src/main.js#L59 |
Beta Was this translation helpful? Give feedback.
-
To me this discussion brings up good points about For example currently, However, if everything was defined as arguments via the CLI I thought of one negative which would be, if you coprocessor does something like this:
This source only makes sense if |
Beta Was this translation helpful? Give feedback.
-
It would be great to have Right now there is just the "deploy" action, which implies there is just a deploy state. But soon there could be other states: active/inactive (or enabled/disabled). If a transform is active then it is also associated with both an input topic and an output topic, and these details could also be provided with The output could be something like the following:
|
Beta Was this translation helpful? Give feedback.
-
The transform object (returned from
Schema handling libraries are different from each other, but they each serialize/deserialize strings/buffers. One issue with this is that these libraries call these functions different names, and so we need to know implementation details when it comes to tests. In the future, chaining these transforms may be a cool feature (which would also be more difficult without this or a similar change). |
Beta Was this translation helpful? Give feedback.
-
After testing asynchronous code within In the future maybe WASM security could be customizable by the module author, or even better through |
Beta Was this translation helpful? Give feedback.
-
The output from
Why is |
Beta Was this translation helpful? Give feedback.
-
Here is an attempt at a simpler API for the |
Beta Was this translation helpful? Give feedback.
-
I've made a Kafka Streams based workflow-as-code engine temporal.io style - https://github.com/awto/kafka-workflow, and want to port it to Redpanda wasm engine. It works much faster with Kafka Streams + Redpanda, but I expect it will be even better with the WASM engine, which is necessary for big data processing workflows. Usual workflow engines use some graphical or declarative text formats (e.g. BPM), encoded in YAML or XML, etc. On the other hand, Workflow-as-code uses plain generic programming language (JavaScript in my implementation, but it can be anything compiled to WASM). This makes workflow definitions significantly easier to develop and maintain. Unlike Temporal, kafka-workflow is a very tiny Kafka streams process. So all the company infrastructure can be kept if it is already based on some event broker. There are also other benefits. The tool needs little from the broker, namely either a local state or a join for the local state change log and event stream. The system inherits all the liveness safety properties from the broker. So do you think it is a fair and achievable use case for the wasm engine? Maybe you may have some API hints for the implementation? |
Beta Was this translation helpful? Give feedback.
-
@vuldin Hello! Could you implement more flexible settings for the outgoing topic so that it is not a template like |
Beta Was this translation helpful? Give feedback.
-
@vuldin Hello! |
Beta Was this translation helpful? Give feedback.
-
Is there a way to pass a desired child topic name to the wasm transform engine? In the example ,
market_activity
topic is created by the user and then the wasm engine automatically creates amarket_activity._result_
topic. It would be great to have another argument for topic name when deploying the wasm module:Another option would be to name the topic after the wasm module name (json2avro above).
Beta Was this translation helpful? Give feedback.
All reactions