Fast and Simple Serverless Functions for Kubernetes
Fast and Simple Serverless Functions for Kubernetes
Fission is an open-source, Kubernetes-native serverless framework that simplifies the deployment of functions and applications on Kubernetes. With Fission, developers can easily create and deploy serverless functions that can be triggered by a variety of events, such as HTTP requests, messages from a message queue, or scheduled tasks.
Fission provides a simple, easy-to-use interface for developers to create serverless functions in their language of choice, without having to worry about the underlying infrastructure. The framework also offers automatic scaling, so functions can scale up or down based on demand, without any additional configuration.
Fission operates on just the code: Docker and Kubernetes are abstracted away under normal operation, though you can use both to extend Fission if you want to.
Fission is extensible to any language; the core is written in Go, and language-specific parts are isolated in something called environments (more below). Fission currently supports NodeJS, Python, Ruby, Go, PHP, Bash, and any Linux executable, with more languages coming soon.
Fission maintains a pool of "warm" containers that each contain a small dynamic loader. When a function is first called, i.e. "cold-started", a running container is chosen and the function is loaded. This pool is what makes Fission fast: cold-start latencies are typically about 100msec.
We're built on Kubernetes because we think any non-trivial app will use a combination of serverless functions and more conventional microservices, and Kubernetes is a great framework to bring these together seamlessly.
Building on Kubernetes also means that anything you do for operations on your Kubernetes cluster — such as monitoring or log aggregation — also helps with ops on your Fission deployment.
# Add the stock NodeJS env to your Fission deployment
$ fission env create --name nodejs --image ghcr.io/fission/node-env
# Create a function with a javascript one-liner that prints "hello world"
$ fission function create --name hello --env nodejs --code https://raw.githubusercontent.com/fission/examples/master/nodejs/hello.js
# Run the function. This takes about 100msec the first time.
$ fission function test --name hello
Hello, world!Check out the contributing guide.
The following companies, organizations, and individuals support Fission's ongoing maintenance and development. If you are using/contributing to Fission, we would be happy to list you here, please raise a Pull request.
Fission is licensed under the Apache License 2.0 - see the LICENSE file for details
Executor rejects requests with 429 capacity_exceeded far below the function's concurrency limit (stale activeRequests accounting) on v1.27.0
Blog suggestion: Autofission — capacity-aware `MaxScale` for Fission
RFC-0030 phase 2: per-function env/envFrom on the poolmgr executor (+ fission/environments runtime support)
Function finalizer never clears when FissionTenant is deleted before its Functions finish tearing down
Epic: Per-function environment variables and flexible Secret/ConfigMap mapping
Epic: GitOps-native install & declarative management
RFC-0026 P5 benchmark: provisioned-warm burst shows real p95 tail-latency contention on B (3.85x vs 1.84x p50, gated ratio)
storagesvc: stream-hash large /v1/archive uploads so HMAC verification memory is bounded
Dynamic tenancy: ConfigMap/Secret pod-recycle (RFC-0004) doesn't follow runtime-onboarded namespaces
Feasibility of Hybrid PoolManager/NewDeploy Execution Strategy