Config yaml: where we're heading #405
Replies: 5 comments 6 replies
-
Proposed format with WASM plugin/layers: subgraphs:
example:
layers:
- kind: wasm # There can be multiple instances of a layer. But users should be encouraged to use this layer only once if possible.
files:
- "layer_1.js"
- "layer_2.js"
plugins:
wasm: # There can be only one instance of a plugin of a particular name
files:
- "plugin_1.js"
- "plugin_2.js" In this format we don't allow embedding of code in the config because:
There is no escaping that if the user has a WASM plugin and a WASM layer then the cost of crossing from Rust to WASM will be incurred twice. There may be other layers that are non-wasm between the plugin and layer so this is unavoidable without making the ordering of layer execution opaque to the user. |
Beta Was this translation helpful? Give feedback.
-
Proposed format with custom service: subgraphs:
example:
service:
kind: rest
mapping: "foo" Basically the same as our current layer stuff. |
Beta Was this translation helpful? Give feedback.
-
Proposed format header manipulation layer: subgraphs:
example:
layers:
- kind: headers # There can be multiple instances of a layer. But users should be encouraged to use this layer only once if possible.
delete: "foo"
forward:
from: "foo"
to: "bar"
default: "bif"
insert:
name: "foo"
value: "bar" This would change the demonstration propagate headers layer to accept multiple operations and would reduce but not eliminate the need to box as the user will only be using one layer. |
Beta Was this translation helpful? Give feedback.
-
@EverlastingBugstopper ☝️ It'd be good for you to have your eyes on this YAML design probably. If both Rover and Rover have |
Beta Was this translation helpful? Give feedback.
-
How should we document what the appropriate verbs and parameters for a layer/plugin are? Is that an interface that we should support in a layer (i.e. should there be a way to interrogate a layer and extract its interface?)? Or should it be done via documentation? |
Beta Was this translation helpful? Give feedback.
-
The tower branch currently has the following YAML format:
The restriction around plugin instance is only in the config format. The plugin registry allows for any number of instances to be created, but should we allow this?
Some things to discuss:
Beta Was this translation helpful? Give feedback.
All reactions