This sample demonstrates how to use WebAssembly Components within a Spin application.
- ACME - acts as an webhook producer (localhost:3000)
- CYBERDYNE - acts as a webhook consumer (localhost:3001)
- WONKA - acts as a webhook consumer (localhost:3002)
- hmac - provides capabilities to
sign
data andverify
those signatures
- Rust with
wasm32-wasi
target must be installed - Cargo Component must be installed
- Wasm Tools must be installed
- Spin must be installed
Use the Makefile to compile and compose all necessary Wasm Components.
Running each of the following in a dedicated terminal session:
make start-acme
make start-wonka
make start-cyberdyne
Run make register-wonka
(as of writing this, this removes all previously registered webhooks for demonstration purposes) to register the wonka service as webhook consumer.
Run make fire-webhook
to make ACME fire a webhook