Skip to content

Does the spin host support multiple wasm guests (which call each other)? #1686

Answered by vdice
GordonSmith asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @GordonSmith, as of today, the only stable/supported method of invoking logic in a sibling wasm file (component) is via an http api endpoint and the use of outbound http calls. For example, consider an app consisting of sibling A as a web frontend and sibling B as a backend handling database logic. Sibling A could make a request to store state via an outbound HTTP request to the app endpoint that sibling B has a handler for. (This requires the sibling A component to know the app's hostname or address:port combination. There is an issue for improving this experience: #957)

Assuming the question is more about executing functions directly between sibling wasm files (doing away with the ne…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GordonSmith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants