Skip to content

Composing two components programmatically #1443

Answered by peterhuene
taybenlor asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @taybenlor. I'm happy to help with the wasm-compose API.

The ComponentComposer is simplistic and is essentially a wrapper around CompositionGraph (which is the flexible primitive for composing components together) geared towards the CLI experience; it expects a configuration for figuring out how to compose components together and that everything to compose exists on disk.

With the CompositionGraph, however, you can compose together components either defined entirely in memory or read from disk. The basic concept for this API is that you "add" components to the graph so that the graph is aware of them, and then create instances (nodes in the graph) and connect (i.e. create an edge) betw…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@taybenlor
Comment options

@peterhuene
Comment options

Answer selected by taybenlor
@taybenlor
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants