SPIKE: WRPC Plugin#295
Closed
lxfontes wants to merge 2 commits into
Closed
Conversation
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
Member
Author
This was referenced Mar 9, 2026
Member
Author
|
moving to wasmcloud/wasmcloud |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Getting this up for discussion / ergonomics.
WRPC NATS Only, using the
dataNATS settings.The WRPC Plugin looks for
host_interfaceswith config keywrpc:name,forwarding imports/exports for that particular 'namespace + package' to wrpc layer. Thewrpc:nameis used as part of the wrpc subject.There is no process supervision or interactions with wasmcloud provider sdk.
WRPC Routing
We pivot identifiers from
workload_namespace & workload_nametohost_group & wrpc_name, resembling wasmcloud's v1 Lattice approach.{host_group}.{wrpc_name}.[wrpc-lib-subject]This happens for a few reasons:
wrpc_namehas to remain stable across restart, and can't useWorkloadnames here as they are ephemeral (would be nice to useWorkloadDeploymentnames)Crosstalk can still be achieved via NATS subject mappings, however it is an advanced use-case.
Example:
All exported interfaces from
wrpc-examples/hellofound on the component will be served over WRPC.Client:
Identity ( WRPC Headers )
(still to be coded)
Headers help external WRPC endpoints identify the caller & multiplex interfaces:
From:{wrpc_name}from the sourceX-Wasmcloud-Workload:{workload_namespace}/{workload_name}X-Wasmcloud-Workload-Id:{workload_id}Also considering passing any additional Interface
configas header.Questions
How to handle different
wrpc:namefor import/export on the same package?This is a limitation of
host_interfaces. Today all import/exports land on the sameWitInterfacewith a single configuration.HostPlugin or not?
Seems weird to pluck a specific
HostPluginwithinwash_runtime::engine.I feel this warrants another "engine-plugin" like HTTP.
Target Switching (Links)
v1 linking at runtime
Besides similar challenges with
host_interfaces, we also have:IMO: WRPC-Only with similar WIT Interface for Link change