Skip to content

Latest commit

 

History

History

composition-sample

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Composition Example

This sample demonstrates how to use WebAssembly Components within a Spin application.

Apps

  • ACME - acts as an webhook producer (localhost:3000)
  • CYBERDYNE - acts as a webhook consumer (localhost:3001)
  • WONKA - acts as a webhook consumer (localhost:3002)

Middlewares

  • hmac - provides capabilities to sign data and verify those signatures

Prerequisites

Building the sample

Use the Makefile to compile and compose all necessary Wasm Components.

Running the sample

Running each of the following in a dedicated terminal session:

  • make start-acme
  • make start-wonka
  • make start-cyberdyne

Using the sample

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