fission

fission / fission

Fission 是一个基于 Kubernetes 的快速、简单的 Serverless 函数框架,让开发者无需管理底层基础设施即可部署和运行函数。

Go 开发工具 基础设施 Web 开发 Serverless Kubernetes 函数计算 云原生 Fission

为什么值得看

编辑点评

Fission 将 Kubernetes 的强大能力与 Serverless 的易用性结合,支持 Python、Node.js、Go 等多种语言,提供秒级冷启动和自动扩缩容。适合已有 Kubernetes 集群、希望以函数粒度运行短生命周期任务的团队。相比 Knative 等方案,Fission 更轻量、上手更快,但生态和社区规模相对较小,适合对性能敏感且需要快速迭代的场景。

Star 趋势

近 7 日
  • Star 总数8,944
  • 今日新增+1
  • 7 日增速0%
  • Fork794

同类项目

同场景 · 开发工具 / 基础设施 / Web 开发

项目文档

来自 GitHub README · main 分支

Fission: 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.

Table of Contents

Performance: 100msec cold start

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.

Kubernetes is the right place for Serverless

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.

Getting Started

  # 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!

Learn More

Contributing

Check out the contributing guide.

Who is using Fission?

Sponsors

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.

License

Fission is licensed under the Apache License 2.0 - see the LICENSE file for details

文档抓取自 GitHub 仓库 README,版权归原作者所有;已过滤徽章等噪音并经安全消毒后展示。