selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

openwhisk logo

Self-host openwhisk

2.0.0

Event-driven serverless functions platform for your cloud

ReleaseOpen SourceApache-2.0
helm install owdev openwhisk/openwhisk -n openwhisk --create-namespace -f mycluster.yaml
Updated4 months ago
LanguageScala
Setup difficultyAdvanced
Stars
6 807
CPU
2 virtual CPUs
RAM
4GB of memory
Ports
3233 (Standalone OpenWhisk API server), 3232 (Playground UI)
Requires
Docker, Java
Docker
openwhisk/standalone
openwhisk screenshot 1openwhisk screenshot 2openwhisk screenshot 3

What is openwhisk?

Apache OpenWhisk is an open-source, distributed serverless platform: you write functions (Actions) in a supported language, and the system runs them inside Docker containers when HTTP requests or events arrive through Triggers and Rules. It ships a REST API plus the wsk command line tool, a browser Playground for creating and invoking functions, sequences that chain actions, parameter binding, a package catalog with feed providers, and optional API Gateway support. Demand is met by spinning action instances up and down automatically. For your own hardware the community recommends the Helm chart on Kubernetes or OpenShift, whose documentation says one node with 4GB RAM and 2 vCPUs handles the default configuration; a Docker Compose stack brings up the full system (controller, invoker, Kafka, Zookeeper, CouchDB) locally. The quickest option is the Standalone build, a single Java process backed by an in-memory store that needs only Docker and Java. Note that master moved from Akka to Apache Pekko, which the project calls a breaking change requiring fresh clusters; the newest tagged release is v2.0.0 from 2024, and a 3.x line is only mentioned as eventual.

openwhisk alternatives

Should you self-host openwhisk?

openwhisk scores 67/100 on selfhost.directory (how scoring works) and ranks #3 of 7 in Serverless. It has 6 807 GitHub stars, +5 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Scala.

Its closest alternative on selfhost.directory is open-compute (72/100, 3 642 stars). It scores higher overall, so compare the two before you pick. See openwhisk vs open-compute side by side.

Features

  • Action sequences / composition
  • API Gateway supportEnabled with the --api-gw flag in the Standalone stack.
  • CLI tooling (wsk)Ships as the separate openwhisk-cli project.
  • Event-driven triggers and rules
  • Metrics and monitoringOpt-in via --user-events in the Standalone stack.
  • Multi-language runtimes
  • Package catalog with feed providers
  • Parameter binding
  • Per-request autoscaling
  • REST API
  • Serverless functions (actions)
  • Synchronous, asynchronous and scheduled invocation
  • Web-based playground UIServed at localhost:3232 by the Standalone stack.

openwhisk README

OpenWhisk

License Join Slack Twitter

Unit Tests System Tests MultiRuntime Tests Standalone Tests Scheduler Tests Performance Tests codecov

OpenWhisk is a serverless functions platform for building cloud applications. OpenWhisk offers a rich programming model for creating serverless APIs from functions, composing functions into serverless workflows, and connecting events to functions using rules and triggers. Learn more at http://openwhisk.apache.org.

How to install openwhisk

Install openwhisk with Docker Compose

Environment variables
OPENWHISK_PROJECT_HOME, OPENWHISK_VERSION, OPENWHISK_CATALOG_HOME, WSK_CLI, DOCKER_IMAGE_PREFIX
make quick-start

Builds OpenWhisk and its containers, starts the system and runs a hello-world function. `make lean` gives a setup with no Kafka, Zookeeper and no separate Invokers.

How to configure openwhisk

  • WSK_CONFIG_FILEEnvironment variable that changes where the wsk CLI stores its properties file.
  • APIHOSTKey in the .wskprops file holding the API host of the deployment.
  • AUTHKey in the .wskprops file holding the authorization key.
  • OPENWHISK_PROJECT_HOMEPath to a local openwhisk checkout, so quick-start skips downloading sources.
  • OPENWHISK_VERSIONmasterOpenWhisk version to build; defaults to master and can be set to a release.

openwhisk releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…