Skip to content
/ Faasm Public
forked from faasm/faasm

High-performance stateful serverless runtime based on WebAssembly

License

Notifications You must be signed in to change notification settings

grtheod/Faasm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faasm Tests License Release Contributors

Faasm is a high-performance stateful serverless runtime.

Faasm provides multi-tenant isolation, but also lets functions share regions of memory. These shared memory regions give low-latency concurrent access to data, and are synchronised globally to support large-scale parallelism.

Faasm combines software fault isolation from WebAssembly with standard Linux tools to isolate functions in Faaslets, which provide security and resource isolation at low cost. Faaslets run side-by-side as threads of a single runtime process, with low overheads and fast boot times. The underlying WebAssembly execution and code generation is handled by WAVM.

Faasm defines a custom host interface which lets functions perform serverless-specific tasks (e.g. invoking other functions and managing state), as well as interacting with the underlying host (e.g. using the filesystem and networking). The Faasm host interface achieves the same goal as WASI, but in a serverless-specific context.

Quick start

You can start a Faasm cluster locally using the docker-compose.yml file in the root of the project:

docker-compose up --scale worker=2

Then run the Faasm CLI, from which you can build, deploy and invoke functions:

# Start the CLI
./bin/cli.sh

# Upload the demo "hello" function
inv upload demo hello

# Invoke the function
inv invoke demo hello

Note that the first time you run the local set-up it will generate some machine code specific to your host. This is stored in the machine-code directory in the root of the project and reused on subsequent runs.

More information

More detail on some key features and implementations can be found below:

About

High-performance stateful serverless runtime based on WebAssembly

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 67.7%
  • C 14.2%
  • Python 12.3%
  • CMake 2.9%
  • Shell 1.6%
  • Dockerfile 0.7%
  • Other 0.6%