Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KeyValue Counter

This actor accepts http GET requests, and increments a counter whose name is based on the url path. Each unique url is associated a unique counter. The result is returned in a JSON payload as follows:

{
  "counter": 12
}

This actor makes use of the HTTP server (wasmcloud:httpserver) capability and the key-value store capability (wasmcloud:keyvalue).

As usual, it is worth noting that this actor does not know where its HTTP server comes from, nor does it know which key-value implementation the host runtime has provided.

About

WasmCloud demonstration to host lattice with http server and redis backend for a simple UI

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages